Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001808/0.001808, allocations: 120.1 kB / 18.5 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002178/0.002178, allocations: 222.3 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 63.91 kB / 373.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1241, allocations: 53.39 MB / 427.1 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.00463/0.1287, allocations: 2.962 MB / 430.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1301, allocations: 0.7518 MB / 430.8 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.1303, allocations: 11.94 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.1304, allocations: 51.5 kB / 430.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002121/0.1306, allocations: 103.2 kB / 431 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002901/0.1309, allocations: 103.8 kB / 431.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004868/0.1314, allocations: 414.3 kB / 431.5 MB, free: 164 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.1317, allocations: 95.25 kB / 431.6 MB, free: 60 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2392/0.3709, allocations: 153.5 kB / 431.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003601/0.3713, allocations: 179.1 kB / 431.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.822e-05/0.3714, allocations: 39.91 kB / 431.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.575e-05/0.3714, allocations: 41.47 kB / 432 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.252e-05/0.3715, allocations: 82.66 kB / 432.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002214/0.3717, allocations: 178.2 kB / 432.2 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006632/0.3724, allocations: 462.9 kB / 432.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.3724, allocations: 1.25 kB / 432.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3724, allocations: 0 / 432.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.3724, allocations: 5.562 kB / 432.7 MB, free: 7.574 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001301/0.3737, allocations: 0.6719 MB / 433.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.3738, allocations: 9.656 kB / 433.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.994e-05/0.3738, allocations: 7.094 kB / 433.4 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.448e-05/0.3738, allocations: 62.42 kB / 433.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.518e-05/0.3739, allocations: 46.22 kB / 433.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004277/0.3744, allocations: 306.8 kB / 433.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/0.3744, allocations: 19.53 kB / 433.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.3744, allocations: 30.66 kB / 433.8 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005791/0.375, allocations: 289.2 kB / 434.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.375, allocations: 0 / 434.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.375, allocations: 10.31 kB / 434.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3751, allocations: 7.438 kB / 434.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006103/0.3757, allocations: 262.2 kB / 434.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.3776, allocations: 1.095 MB / 435.5 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007168/0.3783, allocations: 215 kB / 435.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002988/0.3786, allocations: 87.53 kB / 435.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.52e-05/0.3786, allocations: 3.188 kB / 435.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004977/0.3791, allocations: 189 kB / 436 MB, free: 6.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.3791, allocations: 0 / 436 MB, free: 6.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001815/0.3809, allocations: 0.5125 MB / 436.5 MB, free: 5.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/0.381, allocations: 138.1 kB / 436.6 MB, free: 5.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003508/0.3813, allocations: 279.5 kB / 436.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.3814, allocations: 31.36 kB / 436.9 MB, free: 5.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.3815, allocations: 206 kB / 437.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.3816, allocations: 50.58 kB / 437.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.3817, allocations: 57.95 kB / 437.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3818, allocations: 334.2 kB / 437.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/0.3821, allocations: 94.84 kB / 437.7 MB, free: 5.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.3825, allocations: 200.2 kB / 437.9 MB, free: 5.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006068/0.3831, allocations: 283.1 kB / 438.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.3831, allocations: 1.188 kB / 438.1 MB, free: 4.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001032/0.3841, allocations: 410 kB / 438.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.116e-05/0.3842, allocations: 33.42 kB / 438.6 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.3842, allocations: 7.812 kB / 438.6 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000419/0.3846, allocations: 80.11 kB / 438.6 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002272/0.3848, allocations: 45.55 kB / 438.7 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001946/0.3868, allocations: 1.798 MB / 440.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.3871, allocations: 56.55 kB / 440.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.3871, allocations: 16.7 kB / 440.6 MB, free: 3.305 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (gain.opAmp.satNeg,gain.opAmp.satPos,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 (24): * Single equations (assignments): 22 * 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.0001477/0.3873, allocations: 153.3 kB / 440.7 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.772e-05/0.3873, allocations: 28.61 kB / 440.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.405e-05/0.3874, allocations: 31.38 kB / 440.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3874, allocations: 3.547 kB / 440.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3874, allocations: 0 / 440.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3874, allocations: 0.5625 kB / 440.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003686/0.3878, allocations: 338.5 kB / 441.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.3878, allocations: 0.7031 kB / 441.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/0.3879, allocations: 21.92 kB / 441.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003174/0.3883, allocations: 76.56 kB / 441.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.3883, allocations: 7.625 kB / 441.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001725/0.39, allocations: 1.803 MB / 443 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.39, allocations: 4.062 kB / 443 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008301/0.3908, allocations: 316.5 kB / 443.3 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.785e-05/0.3909, allocations: 106.1 kB / 443.4 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.912e-05/0.3909, allocations: 7.281 kB / 443.4 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.3912, allocations: 26.84 kB / 443.5 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.3913, allocations: 24.83 kB / 443.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.3913, allocations: 8.609 kB / 443.5 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002438/0.3916, allocations: 198.5 kB / 443.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3916, allocations: 4 kB / 443.7 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004463/0.392, allocations: 88.02 kB / 443.8 MB, free: 0.8516 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: 5 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count,gain.opAmp.satPos,gain.opAmp.satNeg) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * 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.001106/0.3931, allocations: 0.8575 MB / 444.6 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008924/0.394, allocations: 418.1 kB / 445 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.394, allocations: 0 / 445 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000473/0.3945, allocations: 235 kB / 445.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.3948, allocations: 51.92 kB / 445.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006096/0.4009, allocations: 3.091 MB / 448.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/0.4014, allocations: 0.7608 MB / 449.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001459/0.4015, allocations: 27.8 kB / 449.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.4017, allocations: 89.81 kB / 449.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4017, allocations: 0 / 449.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03493/0.4366, allocations: 7.27 MB / 456.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.39, allocations: 11.53 kB / 456.6 MB, free: 11.21 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.854924977989867] Failed to read output from testmodel.py, exit status != 0: ['time', 'gain.opAmp.out.v', 'gain.opAmp.out.i'] 12.547352530993521 12.560521345 12.185375092 Calling exit ...