Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.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.Fluid.Sources.Examples.Outside_Cp,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_Outside_Cp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.Outside_Cp,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_Outside_Cp",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 2.035/2.035, allocations: 390.4 MB / 397.7 MB, free: 10.65 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.001263/0.001263, allocations: 180.2 kB / 490.8 MB, free: 11.18 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.217/1.217, allocations: 221.4 MB / 0.7863 GB, free: 13.54 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.001061/0.001061, allocations: 81.95 kB / 0.9264 GB, free: 4.523 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2921/0.2932, allocations: 149.1 MB / 1.072 GB, free: 15.47 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6798/0.973, allocations: 143 MB / 1.212 GB, free: 156.1 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.652/4.625, allocations: 1.941 GB / 3.153 GB, free: 198.2 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/4.625, allocations: 85.95 kB / 3.153 GB, free: 198.1 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 1.603/6.228, allocations: 489.6 MB / 3.631 GB, free: 167.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/6.228, allocations: 12 kB / 3.631 GB, free: 167.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003191/6.231, allocations: 481.2 kB / 3.631 GB, free: 166.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0019/6.233, allocations: 0.9893 MB / 3.632 GB, free: 165.7 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.351e-05/6.233, allocations: 52 kB / 3.632 GB, free: 165.6 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/6.234, allocations: 88 kB / 3.632 GB, free: 165.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002327/6.236, allocations: 1.536 MB / 3.634 GB, free: 164 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/6.238, allocations: 1.436 MB / 3.635 GB, free: 162.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.809e-05/6.238, allocations: 7.938 kB / 3.635 GB, free: 162.4 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/6.238, allocations: 4 kB / 3.635 GB, free: 162.4 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.811e-05/6.238, allocations: 36 kB / 3.635 GB, free: 162.4 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007265/6.246, allocations: 5.593 MB / 3.641 GB, free: 156.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/6.247, allocations: 1.344 MB / 3.642 GB, free: 155.2 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006007/6.248, allocations: 0.4931 MB / 3.643 GB, free: 154.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000747/6.249, allocations: 0.8944 MB / 3.643 GB, free: 153.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008615/6.249, allocations: 0.6588 MB / 3.644 GB, free: 152.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=117): time 3.336e-06/6.249, allocations: 0 / 3.644 GB, free: 152.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=117): time 0.002674/6.252, allocations: 1.124 MB / 3.645 GB, free: 151.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/6.252, allocations: 252.3 kB / 3.645 GB, free: 151.5 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009084/6.253, allocations: 0.6805 MB / 3.646 GB, free: 150.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 9.112e-05/6.253, allocations: 29.7 kB / 3.646 GB, free: 150.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003665/6.254, allocations: 0.5074 MB / 3.647 GB, free: 150.3 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002502/6.254, allocations: 378.2 kB / 3.647 GB, free: 149.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.087e-05/6.254, allocations: 3.938 kB / 3.647 GB, free: 149.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.42e-05/6.254, allocations: 349.9 kB / 3.647 GB, free: 149.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004904/6.254, allocations: 357.9 kB / 3.648 GB, free: 149.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/6.255, allocations: 0.5151 MB / 3.648 GB, free: 148.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006357/6.256, allocations: 446.1 kB / 3.649 GB, free: 148.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/6.256, allocations: 0 / 3.649 GB, free: 148.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002004/6.258, allocations: 1.104 MB / 3.65 GB, free: 147.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/6.258, allocations: 4 kB / 3.65 GB, free: 147.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/6.258, allocations: 4 kB / 3.65 GB, free: 147.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000622/6.258, allocations: 84.91 kB / 3.65 GB, free: 147 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/6.26, allocations: 271.6 kB / 3.65 GB, free: 146.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/6.261, allocations: 1.465 MB / 3.651 GB, free: 145.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/6.263, allocations: 115.3 kB / 3.652 GB, free: 145 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-05/6.263, allocations: 43.97 kB / 3.652 GB, free: 145 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002646/6.263, allocations: 125.3 kB / 3.652 GB, free: 144.8 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/6.263, allocations: 118.6 kB / 3.652 GB, free: 144.7 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002908/6.266, allocations: 1.417 MB / 3.653 GB, free: 143.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/6.266, allocations: 16 kB / 3.653 GB, free: 143.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/6.266, allocations: 4 kB / 3.653 GB, free: 143.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/6.266, allocations: 7.969 kB / 3.653 GB, free: 143.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004611/6.271, allocations: 2.76 MB / 3.656 GB, free: 140.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/6.271, allocations: 4 kB / 3.656 GB, free: 140.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/6.272, allocations: 267.6 kB / 3.656 GB, free: 140.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005266/6.273, allocations: 88.77 kB / 3.656 GB, free: 140.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.399e-05/6.273, allocations: 19.97 kB / 3.656 GB, free: 140.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001673/6.274, allocations: 1.496 MB / 3.658 GB, free: 138.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/6.274, allocations: 0 / 3.658 GB, free: 138.5 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002885/6.277, allocations: 1.917 MB / 3.66 GB, free: 136.5 MB / 1.167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00389/6.281, allocations: 3.024 MB / 3.663 GB, free: 133.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007061/6.282, allocations: 395.2 kB / 3.663 GB, free: 133.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/6.282, allocations: 3.938 kB / 3.663 GB, free: 133.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/6.283, allocations: 99.88 kB / 3.663 GB, free: 133 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/6.283, allocations: 77.19 kB / 3.663 GB, free: 132.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/6.283, allocations: 51.97 kB / 3.663 GB, free: 132.9 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.0006644/6.284, allocations: 0.542 MB / 3.664 GB, free: 132.3 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002619/6.287, allocations: 0.8028 MB / 3.665 GB, free: 131.5 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (ori1.mExc,ori2.mExc) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 125 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002547/6.289, allocations: 1.915 MB / 3.666 GB, free: 129.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001698/6.291, allocations: 1.061 MB / 3.667 GB, free: 128.6 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/6.291, allocations: 4.812 kB / 3.667 GB, free: 128.6 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008477/6.292, allocations: 0.6704 MB / 3.668 GB, free: 127.9 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/6.294, allocations: 389 kB / 3.668 GB, free: 127.6 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005309/6.299, allocations: 2.283 MB / 3.671 GB, free: 125.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/6.3, allocations: 1.476 MB / 3.672 GB, free: 123.7 MB / 1.167 GB Notification: Performance of SimCode: time 1.242e-06/6.3, allocations: 0 / 3.672 GB, free: 123.7 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sources_Examples_Outside_Cp_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sources_Examples_Outside_Cp.fmu > Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat does not exist to compare? outputFormat=mat