Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.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.0007603/0.0007603, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008273/0.0008273, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8557/0.8557, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001481/0.001481, allocations: 225.8 kB / 259.4 MB, free: 13.02 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6651/0.6651, allocations: 138.4 MB / 454.3 MB, free: 29.99 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) 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(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 0.6463 GB, free: 1.875 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.249e-05/1.394e-05, allocations: 6.219 kB / 0.6463 GB, free: 1.867 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegerReplicator): time 0.002371/0.002385, allocations: 1.793 MB / 0.648 GB, free: 64 kB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2271/0.2295, allocations: 1.17 MB / 0.6492 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.825e-05/0.2296, allocations: 3.781 kB / 0.6492 GB, free: 55.27 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.2299, allocations: 60.81 kB / 0.6493 GB, free: 55.25 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002526/0.2301, allocations: 131.8 kB / 0.6494 GB, free: 55.23 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003418/0.2305, allocations: 194 kB / 0.6496 GB, free: 55.2 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001711/0.2306, allocations: 159.6 kB / 0.6497 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 8.803e-05/0.2307, allocations: 19.78 kB / 0.6497 GB, free: 55.18 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 9.45e-05/0.2308, allocations: 90.27 kB / 0.6498 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 9.009e-05/0.2309, allocations: 61.52 kB / 0.6499 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.838e-05/0.2309, allocations: 8.562 kB / 0.6499 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.231, allocations: 75.95 kB / 0.65 GB, free: 55.16 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 6.384e-05/0.2311, allocations: 41.09 kB / 0.65 GB, free: 55.15 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.234e-05/0.2311, allocations: 36.62 kB / 0.65 GB, free: 55.14 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.2314, allocations: 213.5 kB / 0.6502 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.2314, allocations: 2.312 kB / 0.6502 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2314, allocations: 0 / 0.6502 GB, free: 55.11 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.2314, allocations: 0 / 0.6502 GB, free: 55.11 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004274/0.2318, allocations: 425 kB / 0.6506 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2318, allocations: 12.72 kB / 0.6507 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.965e-05/0.2319, allocations: 41.61 kB / 0.6507 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.341e-05/0.2319, allocations: 16.59 kB / 0.6507 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.2321, allocations: 197.3 kB / 0.6509 GB, free: 54.54 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.2321, allocations: 4.406 kB / 0.6509 GB, free: 54.54 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.027e-05/0.2321, allocations: 5.438 kB / 0.6509 GB, free: 54.54 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.2323, allocations: 123.2 kB / 0.651 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.2323, allocations: 1.219 kB / 0.651 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.2323, allocations: 3.266 kB / 0.651 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.2323, allocations: 1.906 kB / 0.651 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.442e-05/0.2324, allocations: 37.42 kB / 0.6511 GB, free: 54.45 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003224/0.2327, allocations: 319.6 kB / 0.6514 GB, free: 54.21 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00013/0.2328, allocations: 88 kB / 0.6515 GB, free: 54.19 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.909e-05/0.2329, allocations: 34.7 kB / 0.6515 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.2329, allocations: 0.9375 kB / 0.6515 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001111/0.233, allocations: 89.05 kB / 0.6516 GB, free: 54.12 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=8): time 1.243e-06/0.233, allocations: 0.8125 kB / 0.6516 GB, free: 54.12 MB / 0.5573 GB Notification: Performance of matching and sorting (n=8): time 0.0002139/0.2332, allocations: 147.5 kB / 0.6517 GB, free: 54.08 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.089e-05/0.2332, allocations: 80.34 kB / 0.6518 GB, free: 53.99 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.2334, allocations: 273.9 kB / 0.6521 GB, free: 53.88 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 9.167e-06/0.2334, allocations: 32.67 kB / 0.6521 GB, free: 53.85 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 4.175e-05/0.2334, allocations: 119.9 kB / 0.6522 GB, free: 53.77 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.2335, allocations: 15.78 kB / 0.6522 GB, free: 53.76 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.2335, allocations: 27.56 kB / 0.6522 GB, free: 53.74 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.836e-05/0.2335, allocations: 334.5 kB / 0.6526 GB, free: 53.43 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.068e-05/0.2336, allocations: 30.86 kB / 0.6526 GB, free: 53.42 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.943e-05/0.2336, allocations: 115.3 kB / 0.6527 GB, free: 53.33 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.077e-05/0.2337, allocations: 74.03 kB / 0.6528 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2337, allocations: 1.125 kB / 0.6528 GB, free: 53.31 MB / 0.5573 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001207/0.2338, allocations: 120.1 kB / 0.6529 GB, free: 53.27 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.2338, allocations: 9.281 kB / 0.6529 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2338, allocations: 0 / 0.6529 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.2339, allocations: 4.469 kB / 0.6529 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.911e-05/0.2339, allocations: 12.28 kB / 0.6529 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.2339, allocations: 2.75 kB / 0.6529 GB, free: 53.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.491e-05/0.234, allocations: 10.11 kB / 0.6529 GB, free: 53.25 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.234, allocations: 8.266 kB / 0.6529 GB, free: 53.25 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * 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 7.8e-05/0.234, allocations: 150.8 kB / 0.6531 GB, free: 53.13 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.2341, allocations: 15.62 kB / 0.6531 GB, free: 53.12 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000166/0.2342, allocations: 133.3 kB / 0.6532 GB, free: 53.09 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.2342, allocations: 3.5 kB / 0.6532 GB, free: 53.09 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2342, allocations: 0.7031 kB / 0.6532 GB, free: 53.09 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2342, allocations: 0 / 0.6532 GB, free: 53.09 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.2343, allocations: 198 kB / 0.6534 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2343, allocations: 4.188 kB / 0.6534 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.298e-05/0.2344, allocations: 7.797 kB / 0.6534 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2344, allocations: 1.219 kB / 0.6534 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.545e-06/0.2344, allocations: 3.031 kB / 0.6534 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.2344, allocations: 2.25 kB / 0.6534 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2344, allocations: 0 / 0.6534 GB, free: 52.93 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001295/0.2345, allocations: 154.6 kB / 0.6536 GB, free: 52.85 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.815e-05/0.2345, allocations: 17.38 kB / 0.6536 GB, free: 52.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.2345, allocations: 2.219 kB / 0.6536 GB, free: 52.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.492e-05/0.2346, allocations: 3.141 kB / 0.6536 GB, free: 52.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.2346, allocations: 13.36 kB / 0.6536 GB, free: 52.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.2346, allocations: 2.219 kB / 0.6536 GB, free: 52.84 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001098/0.2347, allocations: 203.6 kB / 0.6538 GB, free: 52.77 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2347, allocations: 0 / 0.6538 GB, free: 52.77 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001656/0.2349, allocations: 35.61 kB / 0.6538 GB, free: 52.76 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * 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.0008485/0.2357, allocations: 1.047 MB / 0.6549 GB, free: 52.12 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001383/0.2359, allocations: 73.23 kB / 0.6549 GB, free: 52.11 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.2359, allocations: 0 / 0.6549 GB, free: 52.11 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 4.895e-05/0.2359, allocations: 38.52 kB / 0.655 GB, free: 52.11 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.2361, allocations: 37.38 kB / 0.655 GB, free: 52.11 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.2374, allocations: 2.02 MB / 0.657 GB, free: 50.78 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.247e-05/0.2374, allocations: 113.3 kB / 0.6571 GB, free: 50.7 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 5.492e-05/0.2375, allocations: 25.45 kB / 0.6571 GB, free: 50.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.714e-05/0.2375, allocations: 55.02 kB / 0.6572 GB, free: 50.66 MB / 0.5573 GB Notification: Performance of SimCode: time 2.9e-07/0.2375, allocations: 4 kB / 0.6572 GB, free: 50.65 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01684/0.2544, allocations: 5.632 MB / 0.6627 GB, free: 49.18 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.571/6.825, allocations: 12.95 kB / 0.6627 GB, free: 49.17 MB / 0.5573 GB " [Timeout remaining time 653] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.325876616872847] Failed to read output from testmodel.py, exit status != 0: 6.920240236446261 6.928702004 6.695413528 Calling exit ...