Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator",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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.84/1.84, allocations: 387.2 MB / 394.5 MB, free: 4.383 MB / 306.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009376/0.0009376, allocations: 173.3 kB / 487 MB, free: 10.9 MB / 402.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.175/1.175, allocations: 221.3 MB / 0.7819 GB, free: 3.797 MB / 0.5496 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008409/0.000841, allocations: 107 kB / 0.9213 GB, free: 4.891 MB / 0.6902 GB Notification: Performance of FrontEnd - loaded program: time 0.4082/0.409, allocations: 148.5 MB / 1.066 GB, free: 140.8 MB / 0.7214 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.6169, allocations: 142.3 MB / 1.205 GB, free: 14.53 MB / 0.7371 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6418/1.259, allocations: 148.2 MB / 1.35 GB, free: 3.68 MB / 0.8152 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/1.259, allocations: 75.94 kB / 1.35 GB, free: 3.605 MB / 0.8152 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.002616/1.262, allocations: 0.8494 MB / 1.351 GB, free: 2.727 MB / 0.8152 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/1.262, allocations: 8.5 kB / 1.351 GB, free: 2.719 MB / 0.8152 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.607e-05/1.262, allocations: 7.906 kB / 1.351 GB, free: 2.711 MB / 0.8152 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/1.262, allocations: 174.5 kB / 1.351 GB, free: 2.504 MB / 0.8152 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/1.262, allocations: 0 / 1.351 GB, free: 2.504 MB / 0.8152 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.028e-05/1.262, allocations: 4 kB / 1.351 GB, free: 2.5 MB / 0.8152 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.258e-05/1.262, allocations: 23.98 kB / 1.351 GB, free: 2.477 MB / 0.8152 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.9e-05/1.262, allocations: 49.61 kB / 1.351 GB, free: 2.422 MB / 0.8152 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/1.262, allocations: 0 / 1.351 GB, free: 2.422 MB / 0.8152 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/1.262, allocations: 4 kB / 1.351 GB, free: 2.418 MB / 0.8152 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/1.262, allocations: 4 kB / 1.351 GB, free: 2.414 MB / 0.8152 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003658/1.263, allocations: 245.4 kB / 1.351 GB, free: 2.137 MB / 0.8152 GB Notification: Performance of preOpt comSubExp (simulation): time 5.75e-05/1.263, allocations: 30.48 kB / 1.351 GB, free: 2.098 MB / 0.8152 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.131e-05/1.263, allocations: 24.84 kB / 1.351 GB, free: 2.07 MB / 0.8152 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/1.263, allocations: 0 / 1.351 GB, free: 2.07 MB / 0.8152 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/1.263, allocations: 34.56 kB / 1.351 GB, free: 2.027 MB / 0.8152 GB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/1.263, allocations: 0 / 1.351 GB, free: 2.027 MB / 0.8152 GB Notification: Performance of matching and sorting (n=2): time 0.0001701/1.263, allocations: 41.69 kB / 1.352 GB, free: 1.98 MB / 0.8152 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/1.263, allocations: 51.41 kB / 1.352 GB, free: 1.918 MB / 0.8152 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.418e-05/1.263, allocations: 101.9 kB / 1.352 GB, free: 1.812 MB / 0.8152 GB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/1.263, allocations: 25.7 kB / 1.352 GB, free: 1.781 MB / 0.8152 GB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/1.263, allocations: 96.02 kB / 1.352 GB, free: 1.684 MB / 0.8152 GB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/1.263, allocations: 3.906 kB / 1.352 GB, free: 1.68 MB / 0.8152 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-06/1.263, allocations: 4 kB / 1.352 GB, free: 1.676 MB / 0.8152 GB Notification: Performance of setup shared object (initialization): time 9.715e-05/1.263, allocations: 311.9 kB / 1.352 GB, free: 1.363 MB / 0.8152 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.067e-05/1.263, allocations: 11.98 kB / 1.352 GB, free: 1.352 MB / 0.8152 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.424e-05/1.263, allocations: 4 kB / 1.352 GB, free: 1.348 MB / 0.8152 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.213e-05/1.263, allocations: 11.94 kB / 1.352 GB, free: 1.336 MB / 0.8152 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/1.263, allocations: 0 / 1.352 GB, free: 1.336 MB / 0.8152 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.906e-05/1.263, allocations: 49.75 kB / 1.352 GB, free: 1.281 MB / 0.8152 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/1.263, allocations: 4 kB / 1.352 GB, free: 1.277 MB / 0.8152 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/1.263, allocations: 3.906 kB / 1.352 GB, free: 1.273 MB / 0.8152 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/1.263, allocations: 0 / 1.352 GB, free: 1.273 MB / 0.8152 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/1.264, allocations: 11.98 kB / 1.352 GB, free: 1.262 MB / 0.8152 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/1.264, allocations: 5 kB / 1.352 GB, free: 1.258 MB / 0.8152 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/1.264, allocations: 11.97 kB / 1.352 GB, free: 1.246 MB / 0.8152 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/1.264, allocations: 0 / 1.352 GB, free: 1.246 MB / 0.8152 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (intRep.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * 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 7.278e-05/1.264, allocations: 109 kB / 1.352 GB, free: 1.133 MB / 0.8152 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.63e-05/1.264, allocations: 3.906 kB / 1.352 GB, free: 1.129 MB / 0.8152 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.056e-05/1.264, allocations: 3.312 kB / 1.352 GB, free: 1.129 MB / 0.8152 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/1.264, allocations: 4 kB / 1.352 GB, free: 1.125 MB / 0.8152 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/1.264, allocations: 0 / 1.352 GB, free: 1.125 MB / 0.8152 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/1.264, allocations: 0 / 1.352 GB, free: 1.125 MB / 0.8152 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/1.264, allocations: 146.2 kB / 1.352 GB, free: 0.9453 MB / 0.8152 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/1.264, allocations: 256 / 1.352 GB, free: 0.9453 MB / 0.8152 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.336e-05/1.264, allocations: 19.98 kB / 1.352 GB, free: 0.9258 MB / 0.8152 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/1.264, allocations: 3.906 kB / 1.352 GB, free: 0.9219 MB / 0.8152 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/1.264, allocations: 3.938 kB / 1.352 GB, free: 0.918 MB / 0.8152 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/1.264, allocations: 0 / 1.352 GB, free: 0.918 MB / 0.8152 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/1.264, allocations: 0 / 1.352 GB, free: 0.918 MB / 0.8152 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000109/1.264, allocations: 139.5 kB / 1.353 GB, free: 0.7656 MB / 0.8152 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002085/1.264, allocations: 0.5122 MB / 1.353 GB, free: 240 kB / 0.8152 GB Notification: Performance of postOpt removeConstants (simulation): time 2.828e-05/1.264, allocations: 84.95 kB / 1.353 GB, free: 136 kB / 0.8152 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/1.264, allocations: 0 / 1.353 GB, free: 136 kB / 0.8152 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.822e-05/1.265, allocations: 16.05 kB / 1.353 GB, free: 120 kB / 0.8152 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.242e-05/1.265, allocations: 8 kB / 1.353 GB, free: 112 kB / 0.8152 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-06/1.265, allocations: 0 / 1.353 GB, free: 112 kB / 0.8152 GB Notification: Performance of sort global known variables: time 2.782e-05/1.265, allocations: 87.2 kB / 1.353 GB, free: 24 kB / 0.8152 GB Notification: Performance of remove unused functions: time 0.0007752/1.265, allocations: 7.938 kB / 1.353 GB, free: 16 kB / 0.8152 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (intRep.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0001437/1.266, allocations: 103.2 kB / 1.353 GB, free: 15.91 MB / 0.8308 GB Notification: Performance of simCode: created initialization part: time 8.403e-05/1.266, allocations: 24 kB / 1.353 GB, free: 15.88 MB / 0.8308 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/1.266, allocations: 0 / 1.353 GB, free: 15.88 MB / 0.8308 GB Notification: Performance of simCode: created simulation system equations: time 2.697e-05/1.266, allocations: 11.98 kB / 1.353 GB, free: 15.87 MB / 0.8308 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001559/1.266, allocations: 4 kB / 1.353 GB, free: 15.87 MB / 0.8308 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000234/1.266, allocations: 73.22 kB / 1.354 GB, free: 15.77 MB / 0.8308 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/1.266, allocations: 0.6958 MB / 1.354 GB, free: 15.05 MB / 0.8308 GB Notification: Performance of SimCode: time 2.61e-07/1.266, allocations: 128 / 1.354 GB, free: 15.05 MB / 0.8308 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Routing_Validation_IntegerScalarReplicator.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.IntegerScalarReplicator_res.mat does not exist to compare? outputFormat=mat