Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 97.52 kB / 15.69 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 170.8 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.839/1.839, allocations: 223.2 MB / 240.5 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.947/0.947, allocations: 113.7 MB / 405.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.000366, allocations: 11.98 kB / 493 MB, free: 8.605 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2144, allocations: 77.12 MB / 0.5567 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.003251/0.2177, allocations: 1.439 MB / 0.5581 GB, free: 10.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002894/0.2207, allocations: 0.9914 MB / 0.5591 GB, free: 9.246 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001631/0.2209, allocations: 3.938 kB / 0.5591 GB, free: 9.242 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004457/0.2214, allocations: 47.81 kB / 0.5591 GB, free: 9.195 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003344/0.2217, allocations: 59.86 kB / 0.5592 GB, free: 9.137 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008921/0.2226, allocations: 191.3 kB / 0.5594 GB, free: 8.953 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002548/0.2229, allocations: 87.81 kB / 0.5595 GB, free: 8.867 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.223, allocations: 13.11 kB / 0.5595 GB, free: 8.855 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001684/0.2232, allocations: 55.77 kB / 0.5595 GB, free: 8.801 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.2234, allocations: 51.77 kB / 0.5596 GB, free: 8.75 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.2234, allocations: 4 kB / 0.5596 GB, free: 8.746 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.2236, allocations: 51.89 kB / 0.5596 GB, free: 8.695 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.833e-05/0.2237, allocations: 31.91 kB / 0.5597 GB, free: 8.664 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.748e-05/0.2239, allocations: 49.58 kB / 0.5597 GB, free: 8.609 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.2242, allocations: 140 kB / 0.5599 GB, free: 8.473 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2242, allocations: 0 / 0.5599 GB, free: 8.473 MB / 430.1 MB Notification: Performance of FrontEnd: time 5.05e-06/0.2242, allocations: 0 / 0.5599 GB, free: 8.473 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.2242, allocations: 0 / 0.5599 GB, free: 8.473 MB / 430.1 MB 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.001065/0.2253, allocations: 476.3 kB / 0.5603 GB, free: 7.953 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.771e-05/0.2254, allocations: 12.03 kB / 0.5603 GB, free: 7.941 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.734e-05/0.2255, allocations: 34.56 kB / 0.5603 GB, free: 7.898 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.879e-05/0.2255, allocations: 15.81 kB / 0.5604 GB, free: 7.883 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004926/0.2261, allocations: 243.7 kB / 0.5606 GB, free: 7.602 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.2261, allocations: 11.97 kB / 0.5606 GB, free: 7.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.2261, allocations: 4 kB / 0.5606 GB, free: 7.586 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.2264, allocations: 96.19 kB / 0.5607 GB, free: 7.477 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.2265, allocations: 4 kB / 0.5607 GB, free: 7.473 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.2265, allocations: 4 kB / 0.5607 GB, free: 7.469 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.03e-05/0.2265, allocations: 3.984 kB / 0.5607 GB, free: 7.465 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.2267, allocations: 31.92 kB / 0.5607 GB, free: 7.434 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007576/0.2275, allocations: 360.6 kB / 0.5611 GB, free: 7.031 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003285/0.2278, allocations: 90.7 kB / 0.5612 GB, free: 6.934 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.2279, allocations: 3.984 kB / 0.5612 GB, free: 6.93 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.2282, allocations: 71.45 kB / 0.5612 GB, free: 6.848 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.873e-06/0.2282, allocations: 3.938 kB / 0.5613 GB, free: 6.844 MB / 430.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006315/0.2288, allocations: 226.6 kB / 0.5615 GB, free: 6.598 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.2289, allocations: 102.8 kB / 0.5616 GB, free: 6.473 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000424/0.2294, allocations: 267.4 kB / 0.5618 GB, free: 6.203 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.2294, allocations: 33.7 kB / 0.5619 GB, free: 6.164 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.2296, allocations: 120.1 kB / 0.562 GB, free: 6.043 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.65e-05/0.2296, allocations: 19.7 kB / 0.562 GB, free: 6.023 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.2297, allocations: 4 kB / 0.562 GB, free: 6.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.2298, allocations: 322.8 kB / 0.5623 GB, free: 5.695 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.34e-05/0.2299, allocations: 23.98 kB / 0.5623 GB, free: 5.672 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.2301, allocations: 68.28 kB / 0.5624 GB, free: 5.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.2302, allocations: 35.92 kB / 0.5624 GB, free: 5.555 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.2302, allocations: 7.953 kB / 0.5624 GB, free: 5.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002339/0.2304, allocations: 109.5 kB / 0.5625 GB, free: 5.434 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.2305, allocations: 4 kB / 0.5625 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.2305, allocations: 7.984 kB / 0.5625 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.2305, allocations: 0 / 0.5625 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.2306, allocations: 11.94 kB / 0.5626 GB, free: 5.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.2306, allocations: 8.031 kB / 0.5626 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.259e-05/0.2307, allocations: 11.92 kB / 0.5626 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.2307, allocations: 0 / 0.5626 GB, free: 5.391 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.2309, allocations: 142.5 kB / 0.5627 GB, free: 5.242 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.873e-05/0.231, allocations: 19.77 kB / 0.5627 GB, free: 5.223 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.303e-05/0.231, allocations: 17.41 kB / 0.5627 GB, free: 5.203 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.231, allocations: 3.984 kB / 0.5627 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.231, allocations: 0 / 0.5627 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.2311, allocations: 4 kB / 0.5628 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002266/0.2313, allocations: 225.6 kB / 0.563 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2313, allocations: 0 / 0.563 GB, free: 4.926 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.024e-05/0.2313, allocations: 7.953 kB / 0.563 GB, free: 4.918 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2313, allocations: 0 / 0.563 GB, free: 4.918 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.2314, allocations: 0 / 0.563 GB, free: 4.918 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-06/0.2314, allocations: 7.984 kB / 0.563 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2314, allocations: 0 / 0.563 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.2316, allocations: 140.9 kB / 0.5631 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.688e-05/0.2317, allocations: 96.91 kB / 0.5632 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/0.2318, allocations: 8.141 kB / 0.5632 GB, free: 4.633 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.674e-05/0.2318, allocations: 11.94 kB / 0.5632 GB, free: 4.621 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.2319, allocations: 11.92 kB / 0.5632 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.2319, allocations: 7.984 kB / 0.5632 GB, free: 4.602 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001782/0.2321, allocations: 192.4 kB / 0.5634 GB, free: 4.414 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2321, allocations: 0 / 0.5634 GB, free: 4.414 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002744/0.2324, allocations: 35.98 kB / 0.5635 GB, free: 4.379 MB / 430.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: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001569/0.234, allocations: 0.9949 MB / 0.5644 GB, free: 3.523 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002405/0.2342, allocations: 71.94 kB / 0.5645 GB, free: 3.453 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2342, allocations: 0 / 0.5645 GB, free: 3.453 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 9.412e-05/0.2343, allocations: 47.92 kB / 0.5646 GB, free: 3.406 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.2346, allocations: 36.58 kB / 0.5646 GB, free: 3.371 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.2363, allocations: 1.091 MB / 0.5657 GB, free: 2.227 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.2366, allocations: 0.7321 MB / 0.5664 GB, free: 1.469 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 7.847e-05/0.2367, allocations: 21.38 kB / 0.5664 GB, free: 1.449 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.618e-05/0.2368, allocations: 47.42 kB / 0.5664 GB, free: 1.402 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2368, allocations: 0 / 0.5664 GB, free: 1.402 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6601/0.897, allocations: 4.118 MB / 0.5705 GB, free: 13.44 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004523/0.8976, allocations: 208.7 kB / 0.5707 GB, free: 13.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.795/4.692, allocations: 3.625 kB / 0.5707 GB, free: 13.2 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) Environment - environmentSimulation: