Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.Logical.Validation.Edge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",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.763/1.763, allocations: 390.4 MB / 397.7 MB, free: 10.59 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.0009626/0.0009626, allocations: 181.1 kB / 490.8 MB, free: 11.12 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.102/1.102, allocations: 221.4 MB / 0.7863 GB, free: 13.51 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.0008402/0.0008402, allocations: 95.52 kB / 0.9264 GB, free: 4.469 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2335/0.2344, allocations: 149.2 MB / 1.072 GB, free: 15.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5084/0.7428, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1348/0.8776, allocations: 149.7 MB / 1.358 GB, free: 41.91 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001629/0.8778, allocations: 75.95 kB / 1.358 GB, free: 41.84 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.005404/0.8832, allocations: 2.183 MB / 1.36 GB, free: 39.65 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 2.774e-05/0.8833, allocations: 8 kB / 1.36 GB, free: 39.64 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.043e-05/0.8833, allocations: 16.42 kB / 1.36 GB, free: 39.63 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.49e-05/0.8834, allocations: 168.1 kB / 1.36 GB, free: 39.43 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.8834, allocations: 0 / 1.36 GB, free: 39.43 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.8834, allocations: 4 kB / 1.36 GB, free: 39.42 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.396e-05/0.8835, allocations: 16.59 kB / 1.36 GB, free: 39.41 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.63e-05/0.8836, allocations: 58.09 kB / 1.36 GB, free: 39.34 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.751e-06/0.8836, allocations: 0 / 1.36 GB, free: 39.34 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.8836, allocations: 4.734 kB / 1.36 GB, free: 39.34 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.8836, allocations: 0 / 1.36 GB, free: 39.34 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003147/0.8839, allocations: 307.2 kB / 1.361 GB, free: 39 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 6.966e-05/0.884, allocations: 39.55 kB / 1.361 GB, free: 38.96 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.335e-05/0.8841, allocations: 26.23 kB / 1.361 GB, free: 38.93 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.8841, allocations: 4 kB / 1.361 GB, free: 38.93 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.405e-05/0.8841, allocations: 66.8 kB / 1.361 GB, free: 38.85 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.8841, allocations: 0 / 1.361 GB, free: 38.85 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0001476/0.8843, allocations: 72.47 kB / 1.361 GB, free: 38.78 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.374e-05/0.8843, allocations: 56.28 kB / 1.361 GB, free: 38.71 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.848e-05/0.8844, allocations: 109 kB / 1.361 GB, free: 38.6 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.8844, allocations: 26.27 kB / 1.361 GB, free: 38.57 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 2.532e-05/0.8844, allocations: 92.64 kB / 1.361 GB, free: 38.47 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.8845, allocations: 20.73 kB / 1.361 GB, free: 38.45 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.133e-05/0.8845, allocations: 4 kB / 1.361 GB, free: 38.45 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.416e-05/0.8845, allocations: 315.6 kB / 1.361 GB, free: 38.13 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.125e-05/0.8846, allocations: 43.92 kB / 1.361 GB, free: 38.09 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.36e-05/0.8847, allocations: 73.56 kB / 1.361 GB, free: 38 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.8849, allocations: 38.28 kB / 1.362 GB, free: 37.97 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.8849, allocations: 4 kB / 1.362 GB, free: 37.96 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003064/0.8852, allocations: 148.5 kB / 1.362 GB, free: 37.82 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.697e-06/0.8852, allocations: 6.438 kB / 1.362 GB, free: 37.81 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.8852, allocations: 0 / 1.362 GB, free: 37.81 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.8852, allocations: 4 kB / 1.362 GB, free: 37.81 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.031e-05/0.8853, allocations: 17.42 kB / 1.362 GB, free: 37.79 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.339e-06/0.8853, allocations: 4 kB / 1.362 GB, free: 37.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/0.8855, allocations: 57.33 kB / 1.362 GB, free: 37.74 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.8856, allocations: 8.562 kB / 1.362 GB, free: 37.73 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: 10 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul.y,booPul.y,$PRE.edge1.u,edge1.u,edge1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 5.189e-05/0.8856, allocations: 112.5 kB / 1.362 GB, free: 37.62 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.245e-05/0.8856, allocations: 7.906 kB / 1.362 GB, free: 37.61 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.316e-05/0.8857, allocations: 8.875 kB / 1.362 GB, free: 37.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.8857, allocations: 0.5312 kB / 1.362 GB, free: 37.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.8857, allocations: 8.734 kB / 1.362 GB, free: 37.59 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.8857, allocations: 0 / 1.362 GB, free: 37.59 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.8859, allocations: 312.3 kB / 1.362 GB, free: 37.25 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.8859, allocations: 0 / 1.362 GB, free: 37.25 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.436e-05/0.886, allocations: 10.31 kB / 1.362 GB, free: 37.24 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.886, allocations: 4.812 kB / 1.362 GB, free: 37.23 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.886, allocations: 3.984 kB / 1.362 GB, free: 37.23 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.886, allocations: 4.469 kB / 1.362 GB, free: 37.23 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.886, allocations: 1.344 kB / 1.362 GB, free: 37.23 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.979e-05/0.8861, allocations: 174.8 kB / 1.362 GB, free: 37.04 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001304/0.8863, allocations: 0.5431 MB / 1.363 GB, free: 36.48 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 1.803e-05/0.8863, allocations: 81.02 kB / 1.363 GB, free: 36.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.8863, allocations: 0 / 1.363 GB, free: 36.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.662e-05/0.8864, allocations: 13.64 kB / 1.363 GB, free: 36.38 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.234e-05/0.8865, allocations: 11.98 kB / 1.363 GB, free: 36.36 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.8865, allocations: 4.188 kB / 1.363 GB, free: 36.36 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.426e-05/0.8865, allocations: 90.94 kB / 1.363 GB, free: 36.28 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007886/0.8873, allocations: 39.83 kB / 1.363 GB, free: 36.24 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: 7 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.000106/0.8874, allocations: 107.8 kB / 1.363 GB, free: 36.12 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001608/0.8876, allocations: 110.1 kB / 1.363 GB, free: 36.01 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.8876, allocations: 0.5312 kB / 1.363 GB, free: 36.01 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.232e-05/0.8876, allocations: 20.59 kB / 1.363 GB, free: 35.99 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001781/0.8878, allocations: 17.45 kB / 1.363 GB, free: 35.97 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002133/0.888, allocations: 96.02 kB / 1.363 GB, free: 35.86 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.8882, allocations: 0.7044 MB / 1.364 GB, free: 35.12 MB / 0.8855 GB Notification: Performance of SimCode: time 2.5e-07/0.8882, allocations: 0.6875 kB / 1.364 GB, free: 35.12 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat does not exist to compare? outputFormat=mat