Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.376/1.376, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 51.92 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2503, allocations: 53.36 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004944/0.2553, allocations: 3.542 MB / 435.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.2567, allocations: 0.854 MB / 436.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.2569, allocations: 11.94 kB / 436.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001865/0.2571, allocations: 67.3 kB / 436.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.2573, allocations: 138.8 kB / 436.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003598/0.2577, allocations: 131.8 kB / 436.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000527/0.2582, allocations: 0.5094 MB / 437.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.2584, allocations: 107.3 kB / 437.3 MB, free: 1.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/0.2587, allocations: 195.3 kB / 437.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/0.259, allocations: 203.1 kB / 437.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.784e-05/0.259, allocations: 43.94 kB / 437.7 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.655e-05/0.2591, allocations: 48 kB / 437.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.981e-05/0.2592, allocations: 95.61 kB / 437.9 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002042/0.2594, allocations: 218.9 kB / 438.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005409/0.2599, allocations: 0.4979 MB / 438.6 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2599, allocations: 0 / 438.6 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd: time 3.546e-06/0.2599, allocations: 3.984 kB / 438.6 MB, free: 180 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.26, allocations: 0 / 438.6 MB, free: 180 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0011/0.2611, allocations: 0.6567 MB / 439.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.2611, allocations: 12.03 kB / 439.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.973e-05/0.2611, allocations: 8.844 kB / 439.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.423e-05/0.2612, allocations: 66.72 kB / 439.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003362/0.2615, allocations: 88.56 kB / 439.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004556/0.262, allocations: 262.3 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.262, allocations: 21.03 kB / 439.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.2621, allocations: 36.38 kB / 439.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006258/0.2627, allocations: 354.7 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.2627, allocations: 11.86 kB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.2627, allocations: 16 kB / 440.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2627, allocations: 8 kB / 440.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005404/0.2633, allocations: 270.4 kB / 440.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.2652, allocations: 1.372 MB / 441.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004387/0.2657, allocations: 204 kB / 441.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002068/0.2659, allocations: 101.2 kB / 442 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.2659, allocations: 0 / 442 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/0.2659, allocations: 46.36 kB / 442.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.243e-06/0.2659, allocations: 0 / 442.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001409/0.2674, allocations: 487.2 kB / 442.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.2674, allocations: 51.41 kB / 442.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/0.2677, allocations: 312.5 kB / 442.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.2678, allocations: 33.7 kB / 442.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.2679, allocations: 216.5 kB / 443.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.401e-05/0.268, allocations: 75.34 kB / 443.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.21e-05/0.2681, allocations: 49.66 kB / 443.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.2682, allocations: 342.8 kB / 443.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.2684, allocations: 83.89 kB / 443.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.2687, allocations: 124.2 kB / 443.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/0.269, allocations: 204.1 kB / 444 MB, free: 10.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.269, allocations: 0 / 444 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007205/0.2698, allocations: 351.6 kB / 444.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.2698, allocations: 11.98 kB / 444.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2698, allocations: 0 / 444.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/0.2702, allocations: 122.5 kB / 444.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.2704, allocations: 31.92 kB / 444.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004429/0.2748, allocations: 4.664 MB / 449.2 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.2751, allocations: 23.84 kB / 449.2 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.92e-05/0.2751, allocations: 11.98 kB / 449.2 MB, free: 4.879 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000213/0.2753, allocations: 153.8 kB / 449.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.2754, allocations: 31.81 kB / 449.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.394e-05/0.2755, allocations: 39.27 kB / 449.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2755, allocations: 3.938 kB / 449.4 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2755, allocations: 0 / 449.4 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.2755, allocations: 4 kB / 449.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004479/0.2759, allocations: 352.3 kB / 449.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.2759, allocations: 0 / 449.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001143/0.2761, allocations: 23.92 kB / 449.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003701/0.2764, allocations: 118.6 kB / 449.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.2765, allocations: 7.984 kB / 449.9 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004122/0.2806, allocations: 4.657 MB / 454.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.2806, allocations: 3.938 kB / 454.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006722/0.2812, allocations: 401.8 kB / 455 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.2814, allocations: 47.72 kB / 455 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.191e-05/0.2814, allocations: 4 kB / 455 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.2817, allocations: 19.98 kB / 455.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.116e-05/0.2818, allocations: 31.83 kB / 455.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.796e-05/0.2818, allocations: 8 kB / 455.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002349/0.282, allocations: 227 kB / 455.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.282, allocations: 0 / 455.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006648/0.2827, allocations: 115.8 kB / 455.4 MB, free: 14.24 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009313/0.2836, allocations: 0.9324 MB / 456.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009511/0.2846, allocations: 0.5699 MB / 456.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.2846, allocations: 0 / 456.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005623/0.2851, allocations: 475.8 kB / 457.4 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.2855, allocations: 65.45 kB / 457.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004645/0.2902, allocations: 3.152 MB / 460.6 MB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/0.2906, allocations: 0.8031 MB / 461.4 MB, free: 7.996 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.2907, allocations: 22.97 kB / 461.4 MB, free: 7.977 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.2909, allocations: 111.4 kB / 461.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of SimCode: time 1.262e-06/0.2909, allocations: 0 / 461.5 MB, free: 7.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03815/0.329, allocations: 9.03 MB / 470.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.56, allocations: 13.86 kB / 470.6 MB, free: 15.03 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.879304898029659] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 12.734987527015619 12.750729091 12.487671208 Calling exit ...