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.00153/0.00153, allocations: 106.2 kB / 18.84 MB, free: 3.043 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.002713/0.002713, allocations: 188.4 kB / 22.1 MB, free: 5.156 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.53/1.53, allocations: 225.6 MB / 250.8 MB, free: 13.06 MB / 206.1 MB " [Timeout remaining time 178] 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.2143/0.2143, allocations: 29.24 MB / 335.3 MB, free: 11.35 MB / 270.1 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM,fileNamePrefix="SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 63.91 kB / 469.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4348/0.4368, allocations: 59.62 MB / 0.5167 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.PopulationDynamics.LarchBudMoth.LBM): time 0.003902/0.4407, allocations: 2.383 MB / 0.519 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.4418, allocations: 434.3 kB / 0.5194 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.442, allocations: 3.281 kB / 0.5194 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.4421, allocations: 49.31 kB / 0.5195 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.4423, allocations: 30.59 kB / 0.5195 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005605/0.4428, allocations: 156.6 kB / 0.5197 GB, free: 7.719 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004146/0.4433, allocations: 322.1 kB / 0.52 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003212/0.4436, allocations: 167.4 kB / 0.5201 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.4438, allocations: 148.7 kB / 0.5203 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.444, allocations: 169.2 kB / 0.5204 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.927e-05/0.4441, allocations: 34.94 kB / 0.5205 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.4442, allocations: 64.5 kB / 0.5205 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.4444, allocations: 133.6 kB / 0.5207 GB, free: 7.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001817/0.4446, allocations: 214.6 kB / 0.5209 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006189/0.4452, allocations: 433 kB / 0.5213 GB, free: 6.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.4452, allocations: 0 / 0.5213 GB, free: 6.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4452, allocations: 1.188 kB / 0.5213 GB, free: 6.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.4452, allocations: 0 / 0.5213 GB, free: 6.84 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.00133/0.4465, allocations: 0.8003 MB / 0.5221 GB, free: 6.207 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.4466, allocations: 10.19 kB / 0.5221 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001234/0.4467, allocations: 85.73 kB / 0.5222 GB, free: 6.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.4468, allocations: 66.66 kB / 0.5222 GB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.447, allocations: 284.2 kB / 0.5225 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.465e-05/0.4471, allocations: 32.09 kB / 0.5225 GB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.109e-05/0.4471, allocations: 49.12 kB / 0.5226 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008314/0.448, allocations: 472.5 kB / 0.523 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.448, allocations: 7.922 kB / 0.523 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.448, allocations: 24.5 kB / 0.5231 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.448, allocations: 10.97 kB / 0.5231 GB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007419/0.4488, allocations: 370.5 kB / 0.5234 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001743/0.4505, allocations: 1.155 MB / 0.5245 GB, free: 4.812 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.4518, allocations: 498.3 kB / 0.525 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003191/0.4521, allocations: 166.6 kB / 0.5252 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.425e-05/0.4522, allocations: 36.5 kB / 0.5252 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000583/0.4528, allocations: 262.2 kB / 0.5255 GB, free: 4.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.334e-06/0.4528, allocations: 0 / 0.5255 GB, free: 4.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001172/0.4539, allocations: 0.5676 MB / 0.526 GB, free: 4.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.909e-05/0.454, allocations: 83.42 kB / 0.5261 GB, free: 4.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004956/0.4545, allocations: 348.4 kB / 0.5264 GB, free: 4.008 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.087e-05/0.4545, allocations: 36.89 kB / 0.5265 GB, free: 3.969 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.4547, allocations: 254.8 kB / 0.5267 GB, free: 3.762 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.4548, allocations: 142.5 kB / 0.5268 GB, free: 3.648 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.864e-05/0.4549, allocations: 58.22 kB / 0.5269 GB, free: 3.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.455, allocations: 354 kB / 0.5272 GB, free: 3.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.4553, allocations: 141.3 kB / 0.5274 GB, free: 3.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.4556, allocations: 193.8 kB / 0.5276 GB, free: 3.164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/0.4583, allocations: 0.6665 MB / 0.5282 GB, free: 2.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.4583, allocations: 3.938 kB / 0.5282 GB, free: 2.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007996/0.4591, allocations: 436.1 kB / 0.5286 GB, free: 2.789 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.4591, allocations: 6.734 kB / 0.5286 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.4591, allocations: 1.797 kB / 0.5286 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.678e-05/0.4591, allocations: 5.281 kB / 0.5286 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003143/0.4594, allocations: 71.58 kB / 0.5287 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.4595, allocations: 3.125 kB / 0.5287 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.4596, allocations: 30.22 kB / 0.5287 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.449e-05/0.4596, allocations: 12.95 kB / 0.5288 GB, free: 2.754 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.0003002/0.4599, allocations: 189.5 kB / 0.5289 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.831e-05/0.46, allocations: 42.41 kB / 0.529 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008427/0.4608, allocations: 459.5 kB / 0.5294 GB, free: 2.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.4608, allocations: 12.28 kB / 0.5294 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.4609, allocations: 1.531 kB / 0.5294 GB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.4609, allocations: 6.109 kB / 0.5294 GB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006071/0.4615, allocations: 0.4976 MB / 0.5299 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4615, allocations: 1.906 kB / 0.5299 GB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.4618, allocations: 64.08 kB / 0.53 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.4618, allocations: 1.469 kB / 0.53 GB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.529e-05/0.4618, allocations: 17.17 kB / 0.53 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.683e-06/0.4618, allocations: 5.625 kB / 0.53 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4618, allocations: 1.125 kB / 0.53 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007615/0.4626, allocations: 462.6 kB / 0.5304 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.823e-05/0.4626, allocations: 121.3 kB / 0.5306 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/0.4627, allocations: 12.31 kB / 0.5306 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.4628, allocations: 16.31 kB / 0.5306 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.615e-05/0.4629, allocations: 31.34 kB / 0.5306 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.501e-05/0.4629, allocations: 18.73 kB / 0.5306 GB, free: 1.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000281/0.4632, allocations: 250 kB / 0.5309 GB, free: 1.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4632, allocations: 0 / 0.5309 GB, free: 1.594 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003679/0.4636, allocations: 90.05 kB / 0.531 GB, free: 1.562 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.001375/0.465, allocations: 1.227 MB / 0.5322 GB, free: 0.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007416/0.4657, allocations: 358.3 kB / 0.5325 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4657, allocations: 0 / 0.5325 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003449/0.4661, allocations: 190.6 kB / 0.5327 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.4664, allocations: 24.47 kB / 0.5327 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005768/0.4721, allocations: 3.794 MB / 0.5364 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00063/0.4728, allocations: 0.8566 MB / 0.5372 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.4729, allocations: 29.36 kB / 0.5373 GB, free: 13.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.4731, allocations: 168.2 kB / 0.5374 GB, free: 13.62 MB / 398.1 MB Notification: Performance of SimCode: time 1.402e-06/0.4731, allocations: 1.156 kB / 0.5374 GB, free: 13.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03572/0.5089, allocations: 6.67 MB / 0.5439 GB, free: 10.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.241/9.75, allocations: 1.062 kB / 0.544 GB, free: 10.88 MB / 398.1 MB " [Timeout remaining time 650] (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 & python3 -m fmpy simulate --output-file SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM_res.csv --start-time 1949 --stop-time 1978 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0116 SystemDynamics_SystemDynamics_PopulationDynamics_LarchBudMoth_LBM.fmu > SystemDynamics_SystemDynamics.PopulationDynamics.LarchBudMoth.LBM.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.841383554972708] Failed to read output from testmodel.py, exit status != 0: 9.822022784966975 9.838765538 9.39031685 Calling exit ...