Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.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: translateModel(Buildings.Fluid.Sources.Examples.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp") translateModel(Buildings.Fluid.Sources.Examples.Outside_Cp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bou1.ports.1..p|bou2.ports.1..p|bouFix.ports.1..p|ori1.m_flow|ori2.m_flow|ori1.dp|ori2.dp",fileNamePrefix="Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp") [: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 2.083/2.083, allocations: 387.2 MB / 394.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 185.2 kB / 487 MB, free: 5.344 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.294/1.294, allocations: 221.3 MB / 0.7819 GB, free: 1.375 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 93.17 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.092e-06/6.112e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2417, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.963/4.205, allocations: 1.94 GB / 3.145 GB, free: 387 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003726/4.205, allocations: 87.95 kB / 3.145 GB, free: 386.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.576/5.781, allocations: 487.8 MB / 3.622 GB, free: 292.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001265/5.781, allocations: 47.86 kB / 3.622 GB, free: 292.8 MB / 1.151 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 0.003627/5.785, allocations: 1.832 MB / 3.624 GB, free: 292 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/5.785, allocations: 8.812 kB / 3.624 GB, free: 292 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003215/5.788, allocations: 482 kB / 3.624 GB, free: 291.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/5.79, allocations: 0.9884 MB / 3.625 GB, free: 291.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.621e-05/5.79, allocations: 47.75 kB / 3.625 GB, free: 291.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/5.79, allocations: 93.33 kB / 3.625 GB, free: 291.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002589/5.793, allocations: 1.541 MB / 3.627 GB, free: 291.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002427/5.795, allocations: 1.432 MB / 3.628 GB, free: 291.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.96e-05/5.795, allocations: 7.656 kB / 3.628 GB, free: 291.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/5.795, allocations: 0 / 3.628 GB, free: 291.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.307e-05/5.796, allocations: 39.31 kB / 3.628 GB, free: 291.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008642/5.804, allocations: 5.591 MB / 3.634 GB, free: 289 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/5.806, allocations: 1.341 MB / 3.635 GB, free: 288.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006776/5.807, allocations: 0.4948 MB / 3.635 GB, free: 288.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008325/5.808, allocations: 0.8864 MB / 3.636 GB, free: 287.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/5.809, allocations: 0.6696 MB / 3.637 GB, free: 287.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=117): time 4.078e-06/5.809, allocations: 0 / 3.637 GB, free: 287.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=117): time 0.002939/5.812, allocations: 1.126 MB / 3.638 GB, free: 287.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/5.812, allocations: 247.3 kB / 3.638 GB, free: 287.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009656/5.813, allocations: 0.6831 MB / 3.639 GB, free: 287.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.481e-05/5.813, allocations: 29.36 kB / 3.639 GB, free: 287.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004187/5.813, allocations: 0.508 MB / 3.639 GB, free: 286.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003138/5.813, allocations: 376.6 kB / 3.64 GB, free: 286.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.526e-05/5.814, allocations: 0 / 3.64 GB, free: 286.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001069/5.814, allocations: 347.1 kB / 3.64 GB, free: 286.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005421/5.814, allocations: 356.9 kB / 3.64 GB, free: 286.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006657/5.815, allocations: 0.5167 MB / 3.641 GB, free: 286.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000733/5.816, allocations: 443.1 kB / 3.641 GB, free: 286.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/5.816, allocations: 3.5 kB / 3.641 GB, free: 286.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002717/5.818, allocations: 1.098 MB / 3.642 GB, free: 285.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/5.818, allocations: 7.875 kB / 3.642 GB, free: 285.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/5.818, allocations: 2.578 kB / 3.642 GB, free: 285.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007112/5.819, allocations: 86.25 kB / 3.643 GB, free: 285.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/5.821, allocations: 272.3 kB / 3.643 GB, free: 285.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/5.823, allocations: 1.465 MB / 3.644 GB, free: 284.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/5.824, allocations: 122 kB / 3.644 GB, free: 284.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/5.824, allocations: 45 kB / 3.644 GB, free: 284.7 MB / 1.151 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.0002656/5.824, allocations: 116.9 kB / 3.645 GB, free: 284.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002366/5.824, allocations: 117.9 kB / 3.645 GB, free: 284.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003616/5.828, allocations: 1.419 MB / 3.646 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/5.828, allocations: 13.42 kB / 3.646 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/5.828, allocations: 0 / 3.646 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/5.828, allocations: 6.516 kB / 3.646 GB, free: 284.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005793/5.834, allocations: 2.774 MB / 3.649 GB, free: 284 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/5.834, allocations: 0 / 3.649 GB, free: 284 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/5.835, allocations: 267.8 kB / 3.649 GB, free: 284 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005622/5.836, allocations: 87.53 kB / 3.649 GB, free: 284 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.441e-05/5.836, allocations: 20.05 kB / 3.649 GB, free: 284 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001953/5.838, allocations: 1.483 MB / 3.651 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/5.838, allocations: 2.688 kB / 3.651 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00452/5.842, allocations: 1.916 MB / 3.652 GB, free: 282.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/5.844, allocations: 390.8 kB / 3.653 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001995/5.844, allocations: 2.375 kB / 3.653 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/5.845, allocations: 114.5 kB / 3.653 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/5.845, allocations: 68.06 kB / 3.653 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001799/5.845, allocations: 61.48 kB / 3.653 GB, free: 282.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001201/5.847, allocations: 0.5334 MB / 3.654 GB, free: 281.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003202/5.85, allocations: 0.6137 MB / 3.654 GB, free: 281.6 MB / 1.151 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.003402/5.853, allocations: 1.907 MB / 3.656 GB, free: 281.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002234/5.856, allocations: 1.067 MB / 3.657 GB, free: 280.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/5.856, allocations: 1.75 kB / 3.657 GB, free: 280.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.00109/5.857, allocations: 0.6657 MB / 3.658 GB, free: 280.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00199/5.859, allocations: 397.4 kB / 3.658 GB, free: 280.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006393/5.865, allocations: 2.28 MB / 3.66 GB, free: 279.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001547/5.867, allocations: 1.481 MB / 3.662 GB, free: 278.8 MB / 1.151 GB Notification: Performance of SimCode: time 8.52e-07/5.867, allocations: 0 / 3.662 GB, free: 278.8 MB / 1.151 GB Notification: Performance of Templates: time 0.06638/5.933, allocations: 31.49 MB / 3.693 GB, free: 266.5 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.makefile (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.sim & ./Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sources_Examples_Outside_Cp.csv","../files/Buildings_9_Buildings.Fluid.Sources.Examples.Outside_Cp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches