Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003888/0.003888, allocations: 183.6 kB / 7.46 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.671/0.671, allocations: 133.5 MB / 141.4 MB, free: 15.69 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 221.3 MB / 395 MB, free: 10.21 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009936/0.0009939, allocations: 95.41 kB / 477.8 MB, free: 10.87 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5021/0.5031, allocations: 88.43 MB / 0.5529 GB, free: 89.08 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1892/0.6923, allocations: 82.31 MB / 0.6333 GB, free: 14.02 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6786/1.371, allocations: 114.9 MB / 0.7456 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003493/1.371, allocations: 75.59 kB / 0.7456 GB, free: 10.71 MB / 0.4948 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.02204/1.393, allocations: 5.61 MB / 0.7511 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/1.394, allocations: 12.84 kB / 0.7511 GB, free: 25.97 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.909e-05/1.394, allocations: 19.16 kB / 0.7511 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005935/1.394, allocations: 261.6 kB / 0.7514 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/1.394, allocations: 5.938 kB / 0.7514 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.712e-05/1.394, allocations: 2.562 kB / 0.7514 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001479/1.394, allocations: 35.56 kB / 0.7514 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002083/1.395, allocations: 86.48 kB / 0.7515 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/1.395, allocations: 0 / 0.7515 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/1.395, allocations: 1.281 kB / 0.7515 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.174e-05/1.395, allocations: 1.281 kB / 0.7515 GB, free: 25.68 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006768/1.395, allocations: 352.2 kB / 0.7519 GB, free: 25.44 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/1.396, allocations: 80.81 kB / 0.7519 GB, free: 25.41 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.643e-05/1.396, allocations: 30.52 kB / 0.752 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/1.396, allocations: 3.938 kB / 0.752 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001411/1.396, allocations: 72.44 kB / 0.752 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=8): time 1.723e-06/1.396, allocations: 0 / 0.752 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of matching and sorting (n=8): time 0.0003598/1.396, allocations: 114.6 kB / 0.7521 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.198e-05/1.396, allocations: 104.1 kB / 0.7522 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003624/1.397, allocations: 233.5 kB / 0.7525 GB, free: 25.08 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/1.397, allocations: 25.7 kB / 0.7525 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.083e-05/1.397, allocations: 104.2 kB / 0.7526 GB, free: 24.96 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.458e-05/1.397, allocations: 15 kB / 0.7526 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.204e-06/1.397, allocations: 0 / 0.7526 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001488/1.397, allocations: 329.6 kB / 0.7529 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.855e-05/1.397, allocations: 23.91 kB / 0.7529 GB, free: 24.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/1.397, allocations: 70.22 kB / 0.753 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/1.397, allocations: 34.28 kB / 0.753 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.397, allocations: 0 / 0.753 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002649/1.398, allocations: 112.5 kB / 0.7531 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/1.398, allocations: 5.375 kB / 0.7532 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/1.398, allocations: 5.312 kB / 0.7532 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/1.398, allocations: 5.219 kB / 0.7532 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/1.398, allocations: 17.67 kB / 0.7532 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/1.398, allocations: 0 / 0.7532 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/1.398, allocations: 7.625 kB / 0.7532 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/1.398, allocations: 6 kB / 0.7532 GB, free: 24.54 MB / 0.5105 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 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete 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.000128/1.398, allocations: 121.5 kB / 0.7533 GB, free: 24.42 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.053e-05/1.398, allocations: 14.62 kB / 0.7533 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003245/1.399, allocations: 114.4 kB / 0.7534 GB, free: 24.37 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/1.399, allocations: 6.688 kB / 0.7534 GB, free: 24.37 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/1.399, allocations: 0 / 0.7534 GB, free: 24.37 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/1.399, allocations: 5.109 kB / 0.7534 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002797/1.399, allocations: 208.9 kB / 0.7536 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/1.399, allocations: 0.7188 kB / 0.7536 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.811e-05/1.399, allocations: 6.125 kB / 0.7536 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/1.399, allocations: 4.797 kB / 0.7537 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/1.399, allocations: 1.281 kB / 0.7537 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/1.399, allocations: 4 kB / 0.7537 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/1.399, allocations: 0 / 0.7537 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003172/1.399, allocations: 140.3 kB / 0.7538 GB, free: 24.12 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005271/1.4, allocations: 0.4996 MB / 0.7543 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/1.4, allocations: 100.4 kB / 0.7544 GB, free: 23.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.495e-05/1.4, allocations: 5.531 kB / 0.7544 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/1.4, allocations: 9.938 kB / 0.7544 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.577e-05/1.4, allocations: 17.45 kB / 0.7544 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.732e-05/1.4, allocations: 2.656 kB / 0.7544 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003531/1.401, allocations: 189.4 kB / 0.7546 GB, free: 23.49 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00169/1.402, allocations: 48.75 kB / 0.7546 GB, free: 23.48 MB / 0.5105 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.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * 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 (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.001274/1.404, allocations: 338.1 kB / 0.755 GB, free: 23.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003872/1.404, allocations: 77.52 kB / 0.755 GB, free: 23.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.404, allocations: 0.5625 kB / 0.755 GB, free: 23.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001517/1.404, allocations: 33.67 kB / 0.7551 GB, free: 23.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000423/1.405, allocations: 40.22 kB / 0.7551 GB, free: 23.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008793/1.406, allocations: 224.1 kB / 0.7553 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006082/1.406, allocations: 0.7554 MB / 0.7561 GB, free: 22.48 MB / 0.5105 GB Notification: Performance of SimCode: time 4.01e-07/1.406, allocations: 0 / 0.7561 GB, free: 22.48 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_IntegerReplicator.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)