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/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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"}) [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7216/0.7216, allocations: 141.8 MB / 149.1 MB, free: 1.375 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 185.3 kB / 181.9 MB, free: 0.7031 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 221.3 MB / 436 MB, free: 5.441 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009023/0.0009023, allocations: 100.5 kB / 0.507 GB, free: 2.098 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001796/0.001796, allocations: 274.5 kB / 0.5884 GB, free: 47.22 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3349/0.3368, allocations: 89.62 MB / 0.676 GB, free: 59.59 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.4737, allocations: 82.79 MB / 0.7568 GB, free: 0.5859 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1425/0.6163, allocations: 112.3 MB / 0.8665 GB, free: 136 kB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.6166, allocations: 77.98 kB / 0.8665 GB, free: 60 kB / 0.5419 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.2738/0.8904, allocations: 5.595 MB / 0.872 GB, free: 110.3 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.8904, allocations: 9.797 kB / 0.872 GB, free: 110.3 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.991e-05/0.8905, allocations: 19.66 kB / 0.872 GB, free: 110.3 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004206/0.891, allocations: 264.7 kB / 0.8723 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.891, allocations: 5.594 kB / 0.8723 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.891, allocations: 4.453 kB / 0.8723 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001068/0.8911, allocations: 32.12 kB / 0.8723 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001397/0.8913, allocations: 88.88 kB / 0.8724 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.8913, allocations: 0 / 0.8724 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.8913, allocations: 1.844 kB / 0.8724 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.8913, allocations: 2.734 kB / 0.8724 GB, free: 110 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000538/0.8919, allocations: 345.3 kB / 0.8728 GB, free: 109.7 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.892, allocations: 80.7 kB / 0.8728 GB, free: 109.7 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.282e-05/0.8921, allocations: 30.45 kB / 0.8729 GB, free: 109.7 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.8921, allocations: 2.281 kB / 0.8729 GB, free: 109.7 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001027/0.8922, allocations: 81.41 kB / 0.8729 GB, free: 109.6 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.8922, allocations: 0 / 0.8729 GB, free: 109.6 MB / 0.5419 GB Notification: Performance of matching and sorting (n=8): time 0.000261/0.8925, allocations: 105 kB / 0.873 GB, free: 109.6 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.8926, allocations: 105.4 kB / 0.8731 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.8928, allocations: 236.5 kB / 0.8734 GB, free: 109.4 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.8928, allocations: 26.22 kB / 0.8734 GB, free: 109.3 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.126e-05/0.8929, allocations: 95.12 kB / 0.8735 GB, free: 109.3 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.475e-05/0.8929, allocations: 26.36 kB / 0.8735 GB, free: 109.2 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-06/0.8929, allocations: 0 / 0.8735 GB, free: 109.2 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 5.663e-05/0.893, allocations: 328.3 kB / 0.8738 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.399e-05/0.893, allocations: 25.2 kB / 0.8738 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.918e-05/0.8931, allocations: 65.56 kB / 0.8739 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.446e-05/0.8932, allocations: 34.14 kB / 0.8739 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.8932, allocations: 7.938 kB / 0.8739 GB, free: 108.9 MB / 0.5419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001865/0.8934, allocations: 109.7 kB / 0.874 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.8934, allocations: 5.938 kB / 0.8741 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.8934, allocations: 0 / 0.8741 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.8934, allocations: 5.5 kB / 0.8741 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.8936, allocations: 13.33 kB / 0.8741 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.8936, allocations: 5.031 kB / 0.8741 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.266e-05/0.8936, allocations: 7.969 kB / 0.8741 GB, free: 108.8 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.8937, allocations: 7.562 kB / 0.8741 GB, free: 108.8 MB / 0.5419 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 6.444e-05/0.8937, allocations: 116 kB / 0.8742 GB, free: 108.7 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.8938, allocations: 20.09 kB / 0.8742 GB, free: 108.7 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002453/0.894, allocations: 118.6 kB / 0.8743 GB, free: 108.7 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.894, allocations: 1.891 kB / 0.8743 GB, free: 108.7 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.8941, allocations: 1.219 kB / 0.8743 GB, free: 108.7 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.8941, allocations: 4.688 kB / 0.8743 GB, free: 108.7 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001605/0.8942, allocations: 208.5 kB / 0.8745 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.8942, allocations: 0 / 0.8745 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.968e-05/0.8943, allocations: 11.38 kB / 0.8746 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.8943, allocations: 1.281 kB / 0.8746 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.8943, allocations: 6.828 kB / 0.8746 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.8943, allocations: 0 / 0.8746 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.8943, allocations: 0 / 0.8746 GB, free: 108.5 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001834/0.8945, allocations: 133.9 kB / 0.8747 GB, free: 108.4 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002171/0.8947, allocations: 0.5116 MB / 0.8752 GB, free: 108 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.8948, allocations: 105.2 kB / 0.8753 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.8948, allocations: 1.969 kB / 0.8753 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.704e-05/0.8949, allocations: 2.938 kB / 0.8753 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.771e-05/0.895, allocations: 11.8 kB / 0.8753 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.895, allocations: 4.312 kB / 0.8753 GB, free: 107.9 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001589/0.8952, allocations: 190.4 kB / 0.8755 GB, free: 107.8 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.000835/0.896, allocations: 53.45 kB / 0.8755 GB, free: 107.8 MB / 0.5419 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.0006641/0.8967, allocations: 338.8 kB / 0.8759 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0002015/0.8969, allocations: 72.98 kB / 0.8759 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.8969, allocations: 3.938 kB / 0.8759 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 8.239e-05/0.897, allocations: 38.48 kB / 0.876 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.8972, allocations: 33.33 kB / 0.876 GB, free: 107.6 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004485/0.8977, allocations: 223.6 kB / 0.8762 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002261/0.8979, allocations: 0.7439 MB / 0.8769 GB, free: 106.8 MB / 0.5419 GB Notification: Performance of SimCode: time 3.31e-07/0.898, allocations: 0 / 0.8769 GB, free: 106.8 MB / 0.5419 GB (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/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegerReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)