Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.001429/0.001429, 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.001609/0.001609, allocations: 189 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.347/1.347, allocations: 225.7 MB / 253.3 MB, free: 12.83 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.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 47.92 kB / 371.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2609, allocations: 52.18 MB / 423.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00403/0.2649, allocations: 2.734 MB / 426.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.2662, allocations: 0.7012 MB / 426.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2663, allocations: 7.938 kB / 426.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001641/0.2665, allocations: 47.5 kB / 426.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002003/0.2667, allocations: 111.1 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.267, allocations: 111.8 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004897/0.2674, allocations: 422.4 kB / 427.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002058/0.2676, allocations: 87.69 kB / 427.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002078/0.2679, allocations: 163.4 kB / 427.7 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002371/0.2681, allocations: 167.3 kB / 427.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.919e-05/0.2682, allocations: 40 kB / 428 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.565e-05/0.2682, allocations: 44 kB / 428 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.155e-05/0.2683, allocations: 75.7 kB / 428.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.2685, allocations: 151.3 kB / 428.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.269, allocations: 454.3 kB / 428.7 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.269, allocations: 0 / 428.7 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.269, allocations: 4 kB / 428.7 MB, free: 9.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.269, allocations: 0 / 428.7 MB, free: 9.062 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001366/0.2703, allocations: 0.6053 MB / 429.3 MB, free: 8.418 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.2704, allocations: 12.03 kB / 429.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.958e-05/0.2704, allocations: 8.688 kB / 429.3 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.644e-05/0.2705, allocations: 58.73 kB / 429.3 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.891e-05/0.2705, allocations: 40.75 kB / 429.4 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004632/0.271, allocations: 253.8 kB / 429.6 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.271, allocations: 20.88 kB / 429.7 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.453e-05/0.2711, allocations: 20.38 kB / 429.7 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007742/0.2719, allocations: 382 kB / 430 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.2719, allocations: 0 / 430 MB, free: 7.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.2719, allocations: 8 kB / 430.1 MB, free: 7.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.2719, allocations: 4 kB / 430.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008013/0.2727, allocations: 293.7 kB / 430.3 MB, free: 7.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001925/0.2746, allocations: 1.03 MB / 431.4 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008349/0.2755, allocations: 234.6 kB / 431.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003293/0.2758, allocations: 100.8 kB / 431.7 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.2758, allocations: 8 kB / 431.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000517/0.2763, allocations: 239.3 kB / 431.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.243e-06/0.2763, allocations: 0 / 431.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002278/0.2786, allocations: 0.5838 MB / 432.5 MB, free: 4.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.164e-05/0.2787, allocations: 102.8 kB / 432.6 MB, free: 4.848 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003262/0.279, allocations: 281.8 kB / 432.9 MB, free: 4.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.2791, allocations: 29.7 kB / 432.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.2792, allocations: 208 kB / 433.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.228e-05/0.2793, allocations: 39.69 kB / 433.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.2794, allocations: 53.89 kB / 433.2 MB, free: 4.219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.2795, allocations: 330.8 kB / 433.6 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003644/0.2799, allocations: 138.1 kB / 433.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004868/0.2804, allocations: 291.2 kB / 434 MB, free: 3.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007069/0.2811, allocations: 311.1 kB / 434.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.2811, allocations: 3.938 kB / 434.3 MB, free: 3.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001248/0.2823, allocations: 0.4897 MB / 434.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.26e-05/0.2824, allocations: 33.7 kB / 434.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.2824, allocations: 4 kB / 434.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004184/0.2828, allocations: 88.86 kB / 434.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.283, allocations: 48.06 kB / 434.9 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002746/0.2858, allocations: 1.883 MB / 436.8 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003235/0.2861, allocations: 63.67 kB / 436.9 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.2861, allocations: 8 kB / 436.9 MB, free: 304 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.2863, allocations: 153.2 kB / 437 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.88e-05/0.2863, allocations: 23.86 kB / 437.1 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.445e-05/0.2864, allocations: 29.77 kB / 437.1 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2864, allocations: 4.062 kB / 437.1 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.2864, allocations: 0 / 437.1 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2864, allocations: 3.938 kB / 437.1 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003221/0.2867, allocations: 256.6 kB / 437.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2867, allocations: 0 / 437.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001317/0.2868, allocations: 19.98 kB / 437.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000293/0.2871, allocations: 84.73 kB / 437.5 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.2872, allocations: 8 kB / 437.5 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002348/0.2895, allocations: 1.694 MB / 439.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2895, allocations: 4.062 kB / 439.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.2906, allocations: 377.3 kB / 439.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.2907, allocations: 19.86 kB / 439.5 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.044e-05/0.2907, allocations: 8 kB / 439.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.2909, allocations: 35.95 kB / 439.6 MB, free: 13.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.961e-05/0.291, allocations: 19.91 kB / 439.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.291, allocations: 8 kB / 439.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.2912, allocations: 201.2 kB / 439.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2912, allocations: 0 / 439.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003843/0.2916, allocations: 79.84 kB / 439.9 MB, free: 13.1 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 (9): * Single equations (assignments): 6 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001412/0.293, allocations: 0.9011 MB / 440.8 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001/0.294, allocations: 459.6 kB / 441.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.294, allocations: 0 / 441.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004634/0.2945, allocations: 234.4 kB / 441.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003232/0.2948, allocations: 53.05 kB / 441.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005316/0.3001, allocations: 3.229 MB / 444.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.3003, allocations: 142.9 kB / 444.9 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001174/0.3004, allocations: 26.28 kB / 444.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.3005, allocations: 79.41 kB / 445 MB, free: 7.723 MB / 350.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3005, allocations: 4 kB / 445 MB, free: 7.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04343/0.344, allocations: 7.183 MB / 452.2 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.89, allocations: 10.97 kB / 452.2 MB, free: 0.7539 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.18865062808618] Failed to read output from testmodel.py, exit status != 0: ['time', 'gain.opAmp.out.v', 'gain.opAmp.out.i'] 13.063903745030984 13.089416633 12.815789623 Calling exit ...