Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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 10.0.0-master/package.mo): time 1.777/1.777, allocations: 390.4 MB / 397.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009887/0.0009887, allocations: 173.6 kB / 490.8 MB, free: 11.2 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.096/1.096, allocations: 221.4 MB / 0.7863 GB, free: 13.57 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008231/0.0008231, allocations: 88.2 kB / 0.9264 GB, free: 4.531 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2311/0.2319, allocations: 149.2 MB / 1.072 GB, free: 15.46 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5267/0.7586, allocations: 143 MB / 1.212 GB, free: 156.1 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.8972, allocations: 149.2 MB / 1.357 GB, free: 42.46 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001612/0.8974, allocations: 71.95 kB / 1.357 GB, free: 42.39 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.003104/0.9006, allocations: 1.177 MB / 1.359 GB, free: 41.21 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.9006, allocations: 8 kB / 1.359 GB, free: 41.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.112e-05/0.9006, allocations: 8.656 kB / 1.359 GB, free: 41.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.726e-05/0.9007, allocations: 170.9 kB / 1.359 GB, free: 40.99 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.9007, allocations: 5.031 kB / 1.359 GB, free: 40.98 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.9007, allocations: 0 / 1.359 GB, free: 40.98 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.005e-05/0.9008, allocations: 20 kB / 1.359 GB, free: 40.96 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.01e-05/0.9009, allocations: 50.2 kB / 1.359 GB, free: 40.91 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.792e-06/0.9009, allocations: 0.6875 kB / 1.359 GB, free: 40.91 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.9009, allocations: 0.6875 kB / 1.359 GB, free: 40.91 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.9009, allocations: 0 / 1.359 GB, free: 40.91 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003485/0.9013, allocations: 278.5 kB / 1.359 GB, free: 40.61 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 6.621e-05/0.9014, allocations: 46.25 kB / 1.359 GB, free: 40.55 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.915e-05/0.9014, allocations: 17.55 kB / 1.359 GB, free: 40.54 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.9014, allocations: 4.531 kB / 1.359 GB, free: 40.53 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.996e-05/0.9015, allocations: 64.39 kB / 1.359 GB, free: 40.46 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.163e-06/0.9015, allocations: 0.8438 kB / 1.359 GB, free: 40.46 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.000136/0.9016, allocations: 61.69 kB / 1.359 GB, free: 40.39 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.738e-05/0.9017, allocations: 52.12 kB / 1.359 GB, free: 40.33 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.151e-05/0.9017, allocations: 97.81 kB / 1.359 GB, free: 40.23 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 9.988e-06/0.9017, allocations: 25.7 kB / 1.359 GB, free: 40.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 1.691e-05/0.9018, allocations: 96.47 kB / 1.36 GB, free: 40.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.9018, allocations: 16.53 kB / 1.36 GB, free: 40.08 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-06/0.9018, allocations: 0 / 1.36 GB, free: 40.08 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.649e-05/0.9018, allocations: 319 kB / 1.36 GB, free: 39.77 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.689e-05/0.9019, allocations: 15.98 kB / 1.36 GB, free: 39.75 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.943e-05/0.9019, allocations: 46.05 kB / 1.36 GB, free: 39.69 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/0.902, allocations: 25.38 kB / 1.36 GB, free: 39.67 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.9021, allocations: 0.9375 kB / 1.36 GB, free: 39.67 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001825/0.9022, allocations: 102.2 kB / 1.36 GB, free: 39.56 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.814e-06/0.9023, allocations: 4.781 kB / 1.36 GB, free: 39.56 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.9023, allocations: 0 / 1.36 GB, free: 39.56 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.9023, allocations: 4.719 kB / 1.36 GB, free: 39.55 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.9024, allocations: 21.36 kB / 1.36 GB, free: 39.54 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.9024, allocations: 0 / 1.36 GB, free: 39.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.597e-05/0.9025, allocations: 19.61 kB / 1.36 GB, free: 39.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.9025, allocations: 4 kB / 1.36 GB, free: 39.52 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 4.65e-05/0.9026, allocations: 112.5 kB / 1.36 GB, free: 39.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.099e-05/0.9026, allocations: 7.906 kB / 1.36 GB, free: 39.39 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.9027, allocations: 74.98 kB / 1.36 GB, free: 39.32 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.9027, allocations: 4 kB / 1.36 GB, free: 39.32 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.9027, allocations: 0.5312 kB / 1.36 GB, free: 39.32 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.9027, allocations: 1 kB / 1.36 GB, free: 39.32 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.9029, allocations: 304 kB / 1.361 GB, free: 38.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.9029, allocations: 0 / 1.361 GB, free: 38.98 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.357e-05/0.903, allocations: 9.125 kB / 1.361 GB, free: 38.97 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.903, allocations: 4.781 kB / 1.361 GB, free: 38.96 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.903, allocations: 5.234 kB / 1.361 GB, free: 38.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.903, allocations: 0.5625 kB / 1.361 GB, free: 38.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.903, allocations: 0 / 1.361 GB, free: 38.96 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.489e-05/0.9031, allocations: 160.8 kB / 1.361 GB, free: 38.79 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000121/0.9033, allocations: 0.535 MB / 1.361 GB, free: 38.24 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 1.717e-05/0.9033, allocations: 93.44 kB / 1.361 GB, free: 38.13 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.9033, allocations: 0.9375 kB / 1.361 GB, free: 38.13 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.9034, allocations: 17.27 kB / 1.361 GB, free: 38.12 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.012e-05/0.9035, allocations: 4 kB / 1.361 GB, free: 38.11 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.9035, allocations: 1.516 kB / 1.361 GB, free: 38.11 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.981e-05/0.9035, allocations: 87.95 kB / 1.362 GB, free: 38.03 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007582/0.9043, allocations: 23.91 kB / 1.362 GB, free: 38 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * 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.0001058/0.9044, allocations: 104.7 kB / 1.362 GB, free: 37.89 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 9.459e-05/0.9045, allocations: 53.09 kB / 1.362 GB, free: 37.84 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.9045, allocations: 0 / 1.362 GB, free: 37.84 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 3.825e-05/0.9045, allocations: 19.94 kB / 1.362 GB, free: 37.82 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001638/0.9047, allocations: 4.594 kB / 1.362 GB, free: 37.82 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002057/0.9049, allocations: 85.09 kB / 1.362 GB, free: 37.71 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.905, allocations: 0.7004 MB / 1.362 GB, free: 36.98 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.9051, allocations: 3.938 kB / 1.362 GB, free: 36.98 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat does not exist to compare? outputFormat=mat