Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.001258/0.001258, allocations: 101.5 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.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.001389/0.001389, allocations: 188.9 kB / 24.49 MB, free: 3.98 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.362/1.362, allocations: 225.7 MB / 253.3 MB, free: 12.86 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.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 51.91 kB / 371.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2537, allocations: 52.18 MB / 423.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004059/0.2578, allocations: 2.591 MB / 426 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.2589, allocations: 0.6154 MB / 426.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.259, allocations: 11.94 kB / 426.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.2592, allocations: 51.5 kB / 426.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002035/0.2594, allocations: 95.17 kB / 426.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.2597, allocations: 87.91 kB / 426.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004473/0.2601, allocations: 370.5 kB / 427.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002142/0.2603, allocations: 91.34 kB / 427.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.2605, allocations: 151.4 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002244/0.2607, allocations: 171.3 kB / 427.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.045e-05/0.2608, allocations: 32 kB / 427.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.06e-05/0.2609, allocations: 36 kB / 427.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.921e-05/0.261, allocations: 75.7 kB / 427.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000192/0.2611, allocations: 139.4 kB / 427.9 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004419/0.2616, allocations: 382.4 kB / 428.2 MB, free: 9.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2616, allocations: 0 / 428.2 MB, free: 9.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2616, allocations: 4 kB / 428.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.2616, allocations: 0 / 428.2 MB, free: 9.496 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001296/0.2629, allocations: 0.5819 MB / 428.8 MB, free: 8.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.2629, allocations: 8.031 kB / 428.8 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.816e-05/0.263, allocations: 8.688 kB / 428.8 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.405e-05/0.263, allocations: 66.66 kB / 428.9 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.156e-05/0.2631, allocations: 36.75 kB / 428.9 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.2635, allocations: 219 kB / 429.2 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.2635, allocations: 20.88 kB / 429.2 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.698e-05/0.2635, allocations: 24.38 kB / 429.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007/0.2642, allocations: 345.9 kB / 429.5 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.2643, allocations: 4 kB / 429.5 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.2643, allocations: 8 kB / 429.5 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.2643, allocations: 12 kB / 429.6 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007923/0.2651, allocations: 253.5 kB / 429.8 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.2668, allocations: 0.9769 MB / 430.8 MB, free: 6.766 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007566/0.2675, allocations: 214.4 kB / 431 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002952/0.2678, allocations: 84.78 kB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.2679, allocations: 8 kB / 431.1 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004844/0.2683, allocations: 217.3 kB / 431.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.222e-06/0.2683, allocations: 0 / 431.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001986/0.2703, allocations: 445.8 kB / 431.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.54e-05/0.2704, allocations: 106.8 kB / 431.8 MB, free: 5.633 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003249/0.2707, allocations: 277.9 kB / 432.1 MB, free: 5.352 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.2708, allocations: 29.7 kB / 432.1 MB, free: 5.316 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.2709, allocations: 208 kB / 432.3 MB, free: 5.109 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.305e-05/0.271, allocations: 39.67 kB / 432.4 MB, free: 5.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.2711, allocations: 57.89 kB / 432.4 MB, free: 5.004 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.2713, allocations: 338.8 kB / 432.8 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003442/0.2716, allocations: 121.9 kB / 432.9 MB, free: 4.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/0.2721, allocations: 283.2 kB / 433.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006801/0.2727, allocations: 301.5 kB / 433.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.2727, allocations: 0 / 433.5 MB, free: 3.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001195/0.2739, allocations: 456.8 kB / 433.9 MB, free: 3.387 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.274, allocations: 37.64 kB / 433.9 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.274, allocations: 8.188 kB / 433.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003395/0.2743, allocations: 68.8 kB / 434 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002162/0.2745, allocations: 47.91 kB / 434.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002392/0.2769, allocations: 1.61 MB / 435.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/0.2773, allocations: 51.88 kB / 435.7 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.08e-05/0.2773, allocations: 12 kB / 435.7 MB, free: 1.434 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001577/0.2775, allocations: 153.6 kB / 435.9 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.905e-05/0.2775, allocations: 19.86 kB / 435.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.786e-05/0.2776, allocations: 29.7 kB / 435.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2776, allocations: 0 / 435.9 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.2776, allocations: 4 kB / 435.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2776, allocations: 3.938 kB / 435.9 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002712/0.2778, allocations: 244.5 kB / 436.2 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.2778, allocations: 0 / 436.2 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.278, allocations: 23.91 kB / 436.2 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002532/0.2782, allocations: 64.81 kB / 436.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.2782, allocations: 4 kB / 436.3 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/0.2804, allocations: 1.597 MB / 437.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.2804, allocations: 0 / 437.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009753/0.2814, allocations: 306 kB / 438.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.189e-05/0.2815, allocations: 43.83 kB / 438.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.2815, allocations: 4 kB / 438.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.2817, allocations: 31.95 kB / 438.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.793e-05/0.2818, allocations: 27.84 kB / 438.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.2818, allocations: 0 / 438.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000215/0.2821, allocations: 205.2 kB / 438.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2821, allocations: 0 / 438.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.2824, allocations: 75.89 kB / 438.5 MB, free: 14.43 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 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001357/0.2838, allocations: 0.8588 MB / 439.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.2848, allocations: 447.5 kB / 439.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2848, allocations: 0 / 439.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004509/0.2852, allocations: 218.6 kB / 440.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.2855, allocations: 45.41 kB / 440.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005139/0.2906, allocations: 3.107 MB / 443.2 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000137/0.2908, allocations: 142.9 kB / 443.3 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.2909, allocations: 26.28 kB / 443.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.291, allocations: 79.41 kB / 443.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.291, allocations: 0 / 443.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04587/0.3369, allocations: 7.082 MB / 450.5 MB, free: 2.379 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.85, allocations: 11.98 kB / 450.5 MB, free: 2.367 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.104957924922928] Failed to read output from testmodel.py, exit status != 0: ['time', 'vIn.signalSource.y'] 13.02161789603997 13.037486182 12.772691101 Calling exit ...