Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.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.001486/0.001486, allocations: 110 kB / 18.93 MB, free: 2.945 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.001616/0.001616, allocations: 185.9 kB / 22.23 MB, free: 5.16 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.326/1.326, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 179]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1731/0.1731, allocations: 29.24 MB / 335.5 MB, free: 11.29 MB / 270.1 MB
"
[Timeout remaining time 180]
Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo)
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: translateModel(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM")
translateModel(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 63.89 kB / 470.4 MB, free: 6.816 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2691, allocations: 59.61 MB / 0.5175 GB, free: 10.13 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.002689/0.2718, allocations: 2.385 MB / 0.5199 GB, free: 8.406 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0007852/0.2726, allocations: 440.7 kB / 0.5203 GB, free: 8.105 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.2727, allocations: 12.41 kB / 0.5203 GB, free: 8.098 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001115/0.2728, allocations: 45.64 kB / 0.5204 GB, free: 8.066 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000116/0.2729, allocations: 29.47 kB / 0.5204 GB, free: 8.043 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003853/0.2733, allocations: 149.1 kB / 0.5205 GB, free: 7.965 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002603/0.2736, allocations: 322.1 kB / 0.5208 GB, free: 7.82 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.2738, allocations: 162.1 kB / 0.521 GB, free: 7.727 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.2739, allocations: 145.4 kB / 0.5211 GB, free: 7.648 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.2741, allocations: 176.2 kB / 0.5213 GB, free: 7.547 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.273e-05/0.2741, allocations: 38.86 kB / 0.5213 GB, free: 7.543 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.2743, allocations: 60.86 kB / 0.5214 GB, free: 7.539 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.000111/0.2744, allocations: 130.5 kB / 0.5215 GB, free: 7.469 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.2745, allocations: 209.9 kB / 0.5217 GB, free: 7.316 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003851/0.2749, allocations: 438.8 kB / 0.5221 GB, free: 7.094 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2749, allocations: 1.188 kB / 0.5221 GB, free: 7.094 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.062e-06/0.2749, allocations: 0 / 0.5221 GB, free: 7.094 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 7.494e-06/0.2749, allocations: 0.7969 kB / 0.5221 GB, free: 7.094 MB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 112
 * Number of variables: 112
Notification: Performance of Generate backend data structure: time 0.001011/0.2759, allocations: 0.7249 MB / 0.5228 GB, free: 6.555 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.2759, allocations: 9.828 kB / 0.5228 GB, free: 6.555 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.881e-05/0.276, allocations: 61.59 kB / 0.5229 GB, free: 6.523 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.2761, allocations: 227.2 kB / 0.5231 GB, free: 6.312 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.2762, allocations: 35.72 kB / 0.5232 GB, free: 6.297 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.686e-05/0.2762, allocations: 48.06 kB / 0.5232 GB, free: 6.277 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006985/0.2769, allocations: 464.9 kB / 0.5236 GB, free: 6.086 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.2769, allocations: 192 / 0.5236 GB, free: 6.086 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.277, allocations: 20.34 kB / 0.5237 GB, free: 6.07 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.277, allocations: 11.83 kB / 0.5237 GB, free: 6.07 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006368/0.2776, allocations: 375.9 kB / 0.524 GB, free: 5.977 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.2789, allocations: 1.099 MB / 0.5251 GB, free: 5.34 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.28, allocations: 0.4913 MB / 0.5256 GB, free: 5.18 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002702/0.2803, allocations: 163.1 kB / 0.5257 GB, free: 5.121 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 6.107e-05/0.2804, allocations: 39.34 kB / 0.5258 GB, free: 5.113 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004032/0.2808, allocations: 261.7 kB / 0.526 GB, free: 4.992 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=41): time 1.433e-06/0.2808, allocations: 0 / 0.526 GB, free: 4.992 MB / 382.1 MB
Notification: Performance of matching and sorting (n=41): time 0.001032/0.2818, allocations: 0.5605 MB / 0.5266 GB, free: 4.805 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.534e-05/0.2818, allocations: 87.27 kB / 0.5267 GB, free: 4.707 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.2821, allocations: 350.6 kB / 0.527 GB, free: 4.531 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.2821, allocations: 37.55 kB / 0.527 GB, free: 4.492 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.2823, allocations: 251.3 kB / 0.5273 GB, free: 4.293 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 7.708e-05/0.2823, allocations: 142 kB / 0.5274 GB, free: 4.18 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.69e-05/0.2824, allocations: 64.69 kB / 0.5275 GB, free: 4.137 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 5.939e-05/0.2825, allocations: 350.6 kB / 0.5278 GB, free: 3.809 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000275/0.2827, allocations: 142.7 kB / 0.5279 GB, free: 3.773 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.2831, allocations: 188 kB / 0.5281 GB, free: 3.695 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002535/0.2856, allocations: 0.6708 MB / 0.5288 GB, free: 3.488 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2856, allocations: 0 / 0.5288 GB, free: 3.488 MB / 382.1 MB
Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006266/0.2862, allocations: 433.2 kB / 0.5292 GB, free: 3.328 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.2862, allocations: 5.375 kB / 0.5292 GB, free: 3.328 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2862, allocations: 5.438 kB / 0.5292 GB, free: 3.324 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.2863, allocations: 3.344 kB / 0.5292 GB, free: 3.324 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000293/0.2865, allocations: 74.08 kB / 0.5293 GB, free: 3.312 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.2866, allocations: 7.562 kB / 0.5293 GB, free: 3.309 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.2867, allocations: 30.17 kB / 0.5293 GB, free: 3.289 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.2867, allocations: 20.44 kB / 0.5293 GB, free: 3.277 MB / 382.1 MB
Warning: Assuming fixed start value for the following 2 variables:
         Eggs.level:DISCRETE(start = Eggs.x0 fixed = true )  \"Discrete state variable\" type: Real
         Rawfiber.level:DISCRETE(start = Rawfiber.x0 fixed = true )  \"Discrete state variable\" type: Real
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 5 ($whenCondition1,$PRE.Eggs.level,$PRE.Rawfiber.level,Rawfiber.level,Eggs.level)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (43):
 * Single equations (assignments): 43
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0001889/0.2869, allocations: 181 kB / 0.5295 GB, free: 3.133 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.877e-05/0.287, allocations: 43.8 kB / 0.5295 GB, free: 3.109 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007652/0.2877, allocations: 457.5 kB / 0.53 GB, free: 2.941 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2877, allocations: 5.594 kB / 0.53 GB, free: 2.941 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.2877, allocations: 5.062 kB / 0.53 GB, free: 2.938 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.2877, allocations: 2.25 kB / 0.53 GB, free: 2.938 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.2882, allocations: 487.6 kB / 0.5305 GB, free: 2.656 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2882, allocations: 1.062 kB / 0.5305 GB, free: 2.656 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002719/0.2885, allocations: 67.09 kB / 0.5305 GB, free: 2.648 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.2885, allocations: 3.797 kB / 0.5305 GB, free: 2.648 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.2885, allocations: 8.078 kB / 0.5305 GB, free: 2.645 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.634e-06/0.2885, allocations: 1.531 kB / 0.5305 GB, free: 2.645 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.2885, allocations: 13.84 kB / 0.5305 GB, free: 2.633 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006595/0.2891, allocations: 456.1 kB / 0.531 GB, free: 2.441 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 4.417e-05/0.2892, allocations: 41.98 kB / 0.531 GB, free: 2.414 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.45e-05/0.2892, allocations: 8.391 kB / 0.531 GB, free: 2.41 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.2894, allocations: 19.77 kB / 0.531 GB, free: 2.398 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.691e-05/0.2894, allocations: 32.41 kB / 0.5311 GB, free: 2.391 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.2895, allocations: 8.484 kB / 0.5311 GB, free: 2.391 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0002079/0.2897, allocations: 255.6 kB / 0.5313 GB, free: 2.262 MB / 382.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.2897, allocations: 0 / 0.5313 GB, free: 2.262 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0002873/0.29, allocations: 92.67 kB / 0.5314 GB, free: 2.227 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 3 ($whenCondition1,Eggs.level,Rawfiber.level)
 * Number of discrete states: 2 (Eggs.level,Rawfiber.level)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (41):
 * Single equations (assignments): 39
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001287/0.2901, allocations: 108.9 kB / 0.5315 GB, free: 2.129 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0006177/0.2907, allocations: 358.2 kB / 0.5319 GB, free: 2.035 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2907, allocations: 0 / 0.5319 GB, free: 2.035 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.291, allocations: 193.6 kB / 0.532 GB, free: 1.98 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.2912, allocations: 25.88 kB / 0.5321 GB, free: 1.965 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.2923, allocations: 0.8485 MB / 0.5329 GB, free: 1.5 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.2926, allocations: 0.8449 MB / 0.5337 GB, free: 0.7891 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0001126/0.2927, allocations: 34.16 kB / 0.5338 GB, free: 0.7812 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.981e-05/0.2927, allocations: 33.89 kB / 0.5338 GB, free: 0.7656 MB / 382.1 MB
Notification: Performance of SimCode: time 6.41e-07/0.2927, allocations: 0 / 0.5338 GB, free: 0.7656 MB / 382.1 MB
Notification: Performance of Templates: time 0.006528/0.2993, allocations: 2.61 MB / 0.5363 GB, free: 316 kB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.makefile [Timeout 660]
(rm -f SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe ; mkfifo SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe >> ../files/SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.sim & ./SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM  -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.334713005460799]
Failed to read output from testmodel.py, exit status != 0:
0.3068081922829151 0.32002677700000004 0.042286247000000006
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f63109317b0>