Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 108.6 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 183.5 kB / 24.5 MB, free: 4.09 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 51.92 kB / 371.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2475, allocations: 52.18 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.00479/0.2523, allocations: 3.518 MB / 426.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.2537, allocations: 0.7606 MB / 427.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.2538, allocations: 4 kB / 427.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002116/0.254, allocations: 75.28 kB / 427.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.2542, allocations: 134.8 kB / 427.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.2545, allocations: 107.8 kB / 428 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005481/0.2551, allocations: 0.5016 MB / 428.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002234/0.2553, allocations: 99.34 kB / 428.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002631/0.2556, allocations: 195.3 kB / 428.8 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002815/0.2558, allocations: 215.1 kB / 429 MB, free: 8.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.309e-05/0.2559, allocations: 40 kB / 429.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.642e-05/0.256, allocations: 40 kB / 429.1 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.252e-05/0.2561, allocations: 91.62 kB / 429.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002105/0.2563, allocations: 218.9 kB / 429.4 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005521/0.2568, allocations: 493.9 kB / 429.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2568, allocations: 0 / 429.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2568, allocations: 0 / 429.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.2568, allocations: 0 / 429.9 MB, free: 8.109 MB / 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.001186/0.258, allocations: 0.6567 MB / 430.5 MB, free: 7.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.2581, allocations: 8.031 kB / 430.5 MB, free: 7.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.396e-05/0.2581, allocations: 8.844 kB / 430.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.518e-05/0.2582, allocations: 74.72 kB / 430.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.676e-05/0.2583, allocations: 56.61 kB / 430.7 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004635/0.2587, allocations: 258.3 kB / 430.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.2587, allocations: 21.03 kB / 430.9 MB, free: 6.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.035e-05/0.2588, allocations: 32.38 kB / 431 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006452/0.2594, allocations: 362.6 kB / 431.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.2594, allocations: 0 / 431.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.2595, allocations: 15.98 kB / 431.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.2595, allocations: 8 kB / 431.4 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005579/0.2601, allocations: 270.4 kB / 431.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002011/0.2621, allocations: 1.365 MB / 433 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004274/0.2625, allocations: 198.5 kB / 433.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.2627, allocations: 96.8 kB / 433.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.2627, allocations: 0 / 433.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.996e-05/0.2628, allocations: 50.42 kB / 433.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.2628, allocations: 0 / 433.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001436/0.2642, allocations: 475.4 kB / 433.8 MB, free: 3.992 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.902e-05/0.2643, allocations: 51.41 kB / 433.8 MB, free: 3.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003443/0.2646, allocations: 308.5 kB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.881e-05/0.2646, allocations: 33.7 kB / 434.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.2648, allocations: 216.4 kB / 434.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.074e-05/0.2649, allocations: 79.33 kB / 434.5 MB, free: 3.281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.815e-05/0.2649, allocations: 45.7 kB / 434.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.2651, allocations: 338.8 kB / 434.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002034/0.2653, allocations: 83.95 kB / 434.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.2655, allocations: 132.2 kB / 435 MB, free: 2.664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004108/0.2659, allocations: 196.1 kB / 435.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2659, allocations: 0 / 435.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007409/0.2667, allocations: 355.6 kB / 435.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.2667, allocations: 8 kB / 435.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.2667, allocations: 3.938 kB / 435.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004263/0.2671, allocations: 122.4 kB / 435.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.2673, allocations: 28.05 kB / 435.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004251/0.2716, allocations: 4.677 MB / 440.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.2718, allocations: 23.88 kB / 440.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.776e-05/0.2718, allocations: 4.188 kB / 440.5 MB, free: 12.88 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.000184/0.272, allocations: 153.7 kB / 440.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.372e-05/0.272, allocations: 35.77 kB / 440.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.457e-05/0.2721, allocations: 43.33 kB / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2721, allocations: 4 kB / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.2721, allocations: 0 / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2721, allocations: 288 / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004335/0.2725, allocations: 348.4 kB / 441 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2725, allocations: 0 / 441 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.2727, allocations: 23.92 kB / 441 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003238/0.273, allocations: 114.5 kB / 441.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.273, allocations: 11.98 kB / 441.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00398/0.277, allocations: 4.653 MB / 445.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.277, allocations: 7.969 kB / 445.8 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006498/0.2776, allocations: 405.7 kB / 446.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.2777, allocations: 47.72 kB / 446.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.2778, allocations: 4 kB / 446.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/0.278, allocations: 19.98 kB / 446.3 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.717e-05/0.2781, allocations: 27.89 kB / 446.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.2781, allocations: 8 kB / 446.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002179/0.2783, allocations: 219.1 kB / 446.5 MB, free: 6.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2783, allocations: 4 kB / 446.5 MB, free: 6.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006385/0.279, allocations: 115.8 kB / 446.7 MB, free: 6.242 MB / 350.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.0009697/0.2799, allocations: 0.9361 MB / 447.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009034/0.2808, allocations: 0.5582 MB / 448.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.2808, allocations: 4.125 kB / 448.2 MB, free: 4.672 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005515/0.2814, allocations: 475.8 kB / 448.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004218/0.2818, allocations: 69.48 kB / 448.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004513/0.2863, allocations: 3.121 MB / 451.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.2868, allocations: 0.7991 MB / 452.6 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.2869, allocations: 27.03 kB / 452.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.2871, allocations: 111.4 kB / 452.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.2871, allocations: 0 / 452.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03884/0.3259, allocations: 8.936 MB / 461.7 MB, free: 7.148 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.66, allocations: 0 / 461.7 MB, free: 7.148 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.913107254018541] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 12.829100155970082 12.844110365 12.584109062 Calling exit ...