Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.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.001455/0.001455, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001373/0.001373, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.347/1.347, allocations: 230.6 MB / 258.3 MB, free: 8 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.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.InvertingAmp,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 43.92 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2349, allocations: 53.37 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.003985/0.2389, allocations: 2.844 MB / 434.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.24, allocations: 0.6739 MB / 435.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.2401, allocations: 4 kB / 435.5 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.2402, allocations: 51.5 kB / 435.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001765/0.2404, allocations: 95.19 kB / 435.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002269/0.2406, allocations: 87.88 kB / 435.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003902/0.241, allocations: 370.5 kB / 436.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.2412, allocations: 91.34 kB / 436.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.2414, allocations: 147.4 kB / 436.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.2416, allocations: 167.4 kB / 436.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.799e-05/0.2416, allocations: 32 kB / 436.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.385e-05/0.2417, allocations: 36 kB / 436.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.221e-05/0.2417, allocations: 79.69 kB / 436.6 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001568/0.2419, allocations: 171.1 kB / 436.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004025/0.2423, allocations: 379.3 kB / 437.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2423, allocations: 0 / 437.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2423, allocations: 0 / 437.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2423, allocations: 0 / 437.1 MB, free: 1.641 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.001172/0.2435, allocations: 0.5858 MB / 437.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.2435, allocations: 12.03 kB / 437.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.871e-05/0.2435, allocations: 12.69 kB / 437.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.402e-05/0.2436, allocations: 62.72 kB / 437.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.644e-05/0.2437, allocations: 36.7 kB / 437.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.244, allocations: 215 kB / 438.1 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.162e-05/0.244, allocations: 24.81 kB / 438.1 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.244, allocations: 20.38 kB / 438.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006531/0.2447, allocations: 302.5 kB / 438.4 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.2447, allocations: 0 / 438.4 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.715e-05/0.2447, allocations: 12 kB / 438.4 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.2447, allocations: 8 kB / 438.4 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007733/0.2455, allocations: 253.5 kB / 438.7 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.2472, allocations: 1.051 MB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00077/0.2479, allocations: 210.5 kB / 439.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.2482, allocations: 80.78 kB / 440 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.425e-05/0.2483, allocations: 11.98 kB / 440 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004352/0.2487, allocations: 165.9 kB / 440.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.2487, allocations: 0 / 440.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.002004/0.2507, allocations: 445.8 kB / 440.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.887e-05/0.2508, allocations: 102.8 kB / 440.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/0.2511, allocations: 285.8 kB / 441 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/0.2511, allocations: 29.7 kB / 441 MB, free: 13.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.2512, allocations: 200 kB / 441.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.913e-05/0.2513, allocations: 39.69 kB / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-05/0.2514, allocations: 57.89 kB / 441.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.2515, allocations: 338.8 kB / 441.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003359/0.2519, allocations: 92.16 kB / 441.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.2523, allocations: 203.8 kB / 441.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.2529, allocations: 307.3 kB / 442.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2529, allocations: 0 / 442.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001198/0.2541, allocations: 422.5 kB / 442.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.2542, allocations: 41.62 kB / 442.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.2542, allocations: 4 kB / 442.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003219/0.2545, allocations: 68.91 kB / 442.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.2547, allocations: 55.83 kB / 442.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.257, allocations: 1.616 MB / 444.4 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003236/0.2574, allocations: 47.81 kB / 444.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.672e-05/0.2574, allocations: 15.98 kB / 444.5 MB, free: 9.781 MB / 350.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.0001443/0.2575, allocations: 153.7 kB / 444.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.2576, allocations: 27.81 kB / 444.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.302e-05/0.2576, allocations: 29.7 kB / 444.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.2576, allocations: 0 / 444.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.2576, allocations: 7.938 kB / 444.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2576, allocations: 0 / 444.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002869/0.2579, allocations: 268.5 kB / 445 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2579, allocations: 0 / 445 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000126/0.2581, allocations: 23.92 kB / 445 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.2583, allocations: 72.78 kB / 445 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.2583, allocations: 0 / 445 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/0.2605, allocations: 1.604 MB / 446.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2605, allocations: 0 / 446.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009997/0.2615, allocations: 309.6 kB / 447 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.002e-05/0.2616, allocations: 35.83 kB / 447 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.2616, allocations: 4 kB / 447 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.2618, allocations: 31.97 kB / 447 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.238e-05/0.2619, allocations: 31.83 kB / 447.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.2619, allocations: 0 / 447.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001992/0.2621, allocations: 205.2 kB / 447.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2621, allocations: 0 / 447.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003242/0.2624, allocations: 75.89 kB / 447.3 MB, free: 6.738 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.0013/0.2637, allocations: 0.8472 MB / 448.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009299/0.2647, allocations: 409.8 kB / 448.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2647, allocations: 0 / 448.6 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004594/0.2651, allocations: 227.2 kB / 448.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.2654, allocations: 48.09 kB / 448.8 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005302/0.2707, allocations: 2.999 MB / 451.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.2711, allocations: 0.7518 MB / 452.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.22e-05/0.2712, allocations: 30.27 kB / 452.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.2713, allocations: 79.41 kB / 452.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2713, allocations: 0 / 452.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03296/0.3042, allocations: 7.074 MB / 459.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.49, allocations: 4.062 kB / 459.8 MB, free: 10.2 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_InvertingAmp.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.729975176975131] Failed to read output from testmodel.py, exit status != 0: ['time', 'vIn.signalSource.y'] 12.657325232983567 12.679752508 12.43324647 Calling exit ...