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.001272/0.001272, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001266/0.001266, allocations: 188.5 kB / 24.49 MB, free: 3.941 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.359/1.359, allocations: 225.7 MB / 253.3 MB, free: 12.8 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.001407/0.001407, allocations: 43.94 kB / 371.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2458, allocations: 52.18 MB / 423.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004682/0.2505, allocations: 3.194 MB / 426.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.2517, allocations: 0.7245 MB / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.2518, allocations: 4 kB / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001848/0.252, allocations: 67.28 kB / 427.3 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.2522, allocations: 138.8 kB / 427.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.2525, allocations: 111.8 kB / 427.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005165/0.253, allocations: 0.5055 MB / 428.1 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.2532, allocations: 103.6 kB / 428.2 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.2534, allocations: 195.3 kB / 428.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.2537, allocations: 207.1 kB / 428.6 MB, free: 9.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.873e-05/0.2538, allocations: 36 kB / 428.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.795e-05/0.2538, allocations: 40 kB / 428.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.599e-05/0.2539, allocations: 95.56 kB / 428.8 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001813/0.2541, allocations: 187.2 kB / 428.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005008/0.2546, allocations: 497.9 kB / 429.4 MB, free: 8.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2546, allocations: 0 / 429.4 MB, free: 8.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2546, allocations: 0 / 429.4 MB, free: 8.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.2546, allocations: 0 / 429.4 MB, free: 8.266 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.001087/0.2557, allocations: 0.649 MB / 430.1 MB, free: 7.586 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.2557, allocations: 15.97 kB / 430.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.177e-05/0.2558, allocations: 8.844 kB / 430.1 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.16e-05/0.2558, allocations: 70.72 kB / 430.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.166e-05/0.2559, allocations: 52.61 kB / 430.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003979/0.2563, allocations: 266.3 kB / 430.5 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.635e-05/0.2563, allocations: 24.97 kB / 430.5 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/0.2564, allocations: 32.38 kB / 430.5 MB, free: 7.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006576/0.257, allocations: 431.8 kB / 431 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2571, allocations: 0 / 431 MB, free: 6.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.2571, allocations: 20 kB / 431 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2571, allocations: 8 kB / 431 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005444/0.2576, allocations: 270.4 kB / 431.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.2595, allocations: 1.271 MB / 432.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004086/0.2599, allocations: 202.5 kB / 432.7 MB, free: 4.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.2601, allocations: 100.7 kB / 432.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.2601, allocations: 8 kB / 432.8 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.2602, allocations: 34.5 kB / 432.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.2602, allocations: 0 / 432.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001372/0.2615, allocations: 479.4 kB / 433.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.2616, allocations: 55.41 kB / 433.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000317/0.2619, allocations: 308.5 kB / 433.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.2619, allocations: 33.7 kB / 433.7 MB, free: 3.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.2621, allocations: 216.4 kB / 433.9 MB, free: 3.508 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.915e-05/0.2621, allocations: 79.33 kB / 434 MB, free: 3.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.725e-05/0.2622, allocations: 49.69 kB / 434 MB, free: 3.375 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.2624, allocations: 338.8 kB / 434.4 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.2626, allocations: 83.95 kB / 434.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.2628, allocations: 124.2 kB / 434.6 MB, free: 2.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.2632, allocations: 196.1 kB / 434.8 MB, free: 2.609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.2632, allocations: 0 / 434.8 MB, free: 2.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007116/0.2639, allocations: 355.7 kB / 435.1 MB, free: 2.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.2639, allocations: 7.984 kB / 435.1 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2639, allocations: 4 kB / 435.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003992/0.2643, allocations: 122.3 kB / 435.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.2645, allocations: 27.98 kB / 435.3 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003976/0.2684, allocations: 4.646 MB / 439.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.2686, allocations: 32.34 kB / 440 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.2687, allocations: 12.09 kB / 440 MB, free: 13.04 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.0001625/0.2688, allocations: 153.7 kB / 440.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.2689, allocations: 35.77 kB / 440.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.083e-05/0.269, allocations: 39.27 kB / 440.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.269, allocations: 4 kB / 440.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.269, allocations: 3.984 kB / 440.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.269, allocations: 0 / 440.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003919/0.2694, allocations: 308.4 kB / 440.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2694, allocations: 0 / 440.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.2695, allocations: 23.97 kB / 440.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003296/0.2698, allocations: 114.4 kB / 440.6 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.2698, allocations: 8 kB / 440.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004011/0.2738, allocations: 4.637 MB / 445.3 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.2739, allocations: 8.25 kB / 445.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006092/0.2745, allocations: 393.6 kB / 445.7 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.2746, allocations: 55.84 kB / 445.7 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/0.2746, allocations: 7.938 kB / 445.7 MB, free: 6.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002269/0.2748, allocations: 19.98 kB / 445.8 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.017e-05/0.2749, allocations: 31.89 kB / 445.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.2749, allocations: 4 kB / 445.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.2752, allocations: 219.1 kB / 446 MB, free: 6.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2752, allocations: 0 / 446 MB, free: 6.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006148/0.2758, allocations: 111.8 kB / 446.1 MB, free: 6.477 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.0009576/0.2767, allocations: 0.9453 MB / 447.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009141/0.2777, allocations: 0.5659 MB / 447.6 MB, free: 4.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.2777, allocations: 4 kB / 447.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005414/0.2782, allocations: 463.9 kB / 448.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004224/0.2786, allocations: 61.69 kB / 448.1 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004422/0.283, allocations: 3.118 MB / 451.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002192/0.2833, allocations: 198.6 kB / 451.5 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.2834, allocations: 22.98 kB / 451.5 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.2835, allocations: 107.4 kB / 451.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2835, allocations: 0 / 451.6 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03827/0.3218, allocations: 8.887 MB / 460.5 MB, free: 8.113 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.87, allocations: 7.156 kB / 460.5 MB, free: 8.109 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: 15.175749495974742] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 13.051631259033456 13.066805176 12.809363654 Calling exit ...