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.001268/0.001268, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001351/0.001351, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.406/1.406, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.001462/0.001462, allocations: 47.92 kB / 378.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2436, allocations: 53.36 MB / 431.9 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004911/0.2485, allocations: 3.208 MB / 435.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.2499, allocations: 0.8141 MB / 435.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.2501, allocations: 7.938 kB / 435.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001957/0.2503, allocations: 71.28 kB / 436 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002519/0.2505, allocations: 130.8 kB / 436.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003841/0.2509, allocations: 135.8 kB / 436.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005694/0.2515, allocations: 0.5133 MB / 436.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.2517, allocations: 95.64 kB / 436.8 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.252, allocations: 207.3 kB / 437 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000271/0.2523, allocations: 207 kB / 437.2 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.261e-05/0.2523, allocations: 40 kB / 437.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.2524, allocations: 44 kB / 437.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.313e-05/0.2525, allocations: 91.62 kB / 437.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.2527, allocations: 183.2 kB / 437.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005427/0.2533, allocations: 0.5018 MB / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.2533, allocations: 0 / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2533, allocations: 0 / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.2533, allocations: 4 kB / 438.1 MB, free: 424 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.001116/0.2544, allocations: 0.6606 MB / 438.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.2544, allocations: 15.97 kB / 438.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.114e-05/0.2545, allocations: 8.844 kB / 438.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.15e-05/0.2545, allocations: 70.66 kB / 438.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003287/0.2549, allocations: 76.58 kB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.2553, allocations: 274.3 kB / 439.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.371e-05/0.2553, allocations: 21.03 kB / 439.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.885e-05/0.2554, allocations: 36.36 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006549/0.256, allocations: 431.8 kB / 439.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.2561, allocations: 0 / 439.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.2561, allocations: 16 kB / 439.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.2561, allocations: 8 kB / 439.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005368/0.2566, allocations: 278.4 kB / 440 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.2585, allocations: 1.291 MB / 441.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004132/0.2589, allocations: 198.4 kB / 441.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.2591, allocations: 101.2 kB / 441.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.2592, allocations: 4 kB / 441.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.577e-05/0.2592, allocations: 50.36 kB / 441.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.332e-06/0.2592, allocations: 0 / 441.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001374/0.2606, allocations: 473.3 kB / 442.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.2606, allocations: 55.34 kB / 442.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003219/0.2609, allocations: 312.5 kB / 442.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.261, allocations: 33.7 kB / 442.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.2611, allocations: 216.4 kB / 442.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.956e-05/0.2612, allocations: 75.38 kB / 442.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-05/0.2613, allocations: 53.66 kB / 442.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.2614, allocations: 338.8 kB / 443.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.2616, allocations: 83.95 kB / 443.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.2618, allocations: 124.2 kB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/0.2622, allocations: 200.1 kB / 443.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.2622, allocations: 4 kB / 443.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006962/0.2629, allocations: 347.8 kB / 443.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.2629, allocations: 11.09 kB / 443.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.2629, allocations: 3.984 kB / 443.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004058/0.2634, allocations: 122.3 kB / 444 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.2635, allocations: 35.92 kB / 444 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003948/0.2675, allocations: 4.645 MB / 448.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002007/0.2677, allocations: 27.83 kB / 448.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.2677, allocations: 8 kB / 448.7 MB, free: 5.121 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.000159/0.2678, allocations: 153.9 kB / 448.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.032e-05/0.2679, allocations: 31.81 kB / 448.9 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.222e-05/0.268, allocations: 39.27 kB / 448.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.268, allocations: 4 kB / 448.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.268, allocations: 0 / 448.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.268, allocations: 4.078 kB / 448.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003895/0.2684, allocations: 316.4 kB / 449.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.2684, allocations: 3.984 kB / 449.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.2685, allocations: 19.98 kB / 449.3 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003244/0.2688, allocations: 118.4 kB / 449.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.2688, allocations: 8 kB / 449.4 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003807/0.2726, allocations: 4.633 MB / 454 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.2726, allocations: 7.875 kB / 454 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006284/0.2733, allocations: 401.3 kB / 454.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.2734, allocations: 51.72 kB / 454.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.95e-05/0.2734, allocations: 4 kB / 454.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.2736, allocations: 24.11 kB / 454.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.098e-05/0.2737, allocations: 27.89 kB / 454.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.2737, allocations: 11.98 kB / 454.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002227/0.274, allocations: 219.1 kB / 454.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.274, allocations: 0 / 454.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006446/0.2746, allocations: 119.8 kB / 454.9 MB, free: 14.54 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.0009138/0.2755, allocations: 0.9333 MB / 455.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008714/0.2764, allocations: 0.5582 MB / 456.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2764, allocations: 0 / 456.4 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005265/0.2769, allocations: 474.9 kB / 456.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.2773, allocations: 64.42 kB / 456.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004398/0.2817, allocations: 3.152 MB / 460 MB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001817/0.2819, allocations: 194.8 kB / 460.2 MB, free: 8.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.718e-05/0.282, allocations: 27.02 kB / 460.3 MB, free: 8.902 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.2822, allocations: 119.3 kB / 460.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2822, allocations: 0 / 460.4 MB, free: 8.785 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03989/0.322, allocations: 8.955 MB / 469.3 MB, free: 72 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/12.82, allocations: 14.44 kB / 469.4 MB, free: 60 kB / 366.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: 15.163272823905572] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 12.997331443009898 13.012386468 12.756153412 Calling exit ...