Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Movers.Examples.ClosedLoop_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y") translateModel(Buildings.Fluid.Movers.Examples.ClosedLoop_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y") [: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 7.0.3-maint.7.0.x/package.mo): time 1.193/1.193, allocations: 249.4 MB / 256.7 MB, free: 7.129 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 184.9 kB / 316 MB, free: 3.582 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.064/1.064, allocations: 205.2 MB / 0.5667 GB, free: 15.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007935/0.0007936, allocations: 81.7 kB / 0.671 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.631e-06/5.661e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.15, allocations: 106.3 MB / 0.8846 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.282/3.432, allocations: 2.234 GB / 3.119 GB, free: 167.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/3.432, allocations: 91.94 kB / 3.119 GB, free: 167.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.819/5.251, allocations: 0.7818 GB / 3.901 GB, free: 31.98 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001381/5.251, allocations: 45.78 kB / 3.901 GB, free: 31.94 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.00318/5.254, allocations: 1.896 MB / 3.903 GB, free: 30.01 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/5.254, allocations: 8.031 kB / 3.903 GB, free: 30 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002604/5.257, allocations: 461.9 kB / 3.903 GB, free: 29.55 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003369/5.26, allocations: 1.901 MB / 3.905 GB, free: 27.61 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.247e-05/5.26, allocations: 28 kB / 3.905 GB, free: 27.58 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/5.261, allocations: 75.89 kB / 3.905 GB, free: 27.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001313/5.262, allocations: 0.863 MB / 3.906 GB, free: 26.64 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/5.263, allocations: 1.046 MB / 3.907 GB, free: 25.54 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/5.263, allocations: 4 kB / 3.907 GB, free: 25.54 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.468e-05/5.263, allocations: 0 / 3.907 GB, free: 25.54 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.611e-05/5.263, allocations: 34 kB / 3.907 GB, free: 25.51 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005159/5.269, allocations: 5.021 MB / 3.912 GB, free: 20.18 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/5.27, allocations: 0.768 MB / 3.913 GB, free: 19.39 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005295/5.27, allocations: 427.2 kB / 3.913 GB, free: 18.97 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000212/5.27, allocations: 194.8 kB / 3.913 GB, free: 18.75 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000505/5.271, allocations: 447 kB / 3.914 GB, free: 18.3 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=71): time 1.984e-06/5.271, allocations: 0 / 3.914 GB, free: 18.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=71): time 0.002128/5.273, allocations: 0.9052 MB / 3.915 GB, free: 17.38 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/5.273, allocations: 188.6 kB / 3.915 GB, free: 17.15 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008747/5.274, allocations: 0.9137 MB / 3.916 GB, free: 16.23 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.343e-05/5.274, allocations: 25.7 kB / 3.916 GB, free: 16.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/5.274, allocations: 445 kB / 3.916 GB, free: 15.75 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/5.274, allocations: 244.3 kB / 3.916 GB, free: 15.51 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/5.274, allocations: 0 / 3.916 GB, free: 15.51 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.775e-05/5.275, allocations: 348.6 kB / 3.917 GB, free: 15.17 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003986/5.275, allocations: 321.9 kB / 3.917 GB, free: 14.86 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004879/5.275, allocations: 0.5874 MB / 3.918 GB, free: 14.14 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007139/5.276, allocations: 430.7 kB / 3.918 GB, free: 13.72 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/5.276, allocations: 4 kB / 3.918 GB, free: 13.71 MB / 0.8698 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001532/5.278, allocations: 1.064 MB / 3.919 GB, free: 12.64 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000241/5.278, allocations: 2.043 MB / 3.921 GB, free: 10.47 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/5.278, allocations: 8 kB / 3.921 GB, free: 10.46 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003164/5.278, allocations: 96.78 kB / 3.921 GB, free: 10.37 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008903/5.279, allocations: 211.7 kB / 3.921 GB, free: 10.16 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006199/5.28, allocations: 1.283 MB / 3.923 GB, free: 8.828 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/5.281, allocations: 127.2 kB / 3.923 GB, free: 8.703 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.253e-05/5.281, allocations: 59.91 kB / 3.923 GB, free: 8.645 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.781e-06/5.281, allocations: 4 kB / 3.923 GB, free: 8.641 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001526/5.283, allocations: 0.8651 MB / 3.924 GB, free: 7.773 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/5.283, allocations: 8 kB / 3.924 GB, free: 7.766 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003968/5.283, allocations: 100.9 kB / 3.924 GB, free: 7.664 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007364/5.284, allocations: 203.7 kB / 3.924 GB, free: 7.465 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/5.287, allocations: 2.636 MB / 3.927 GB, free: 4.648 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009486/5.288, allocations: 118.2 kB / 3.927 GB, free: 4.535 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.236e-05/5.288, allocations: 48.05 kB / 3.927 GB, free: 4.488 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.y.T_start,y.T_start,$PRE.y.count,y.count,conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 94 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001717/5.288, allocations: 128.6 kB / 3.927 GB, free: 4.355 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/5.288, allocations: 134.4 kB / 3.927 GB, free: 4.223 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/5.29, allocations: 0.8884 MB / 3.928 GB, free: 3.32 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/5.29, allocations: 8 kB / 3.928 GB, free: 3.312 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/5.29, allocations: 0 / 3.928 GB, free: 3.312 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001059/5.291, allocations: 0.7727 MB / 3.929 GB, free: 2.504 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002669/5.294, allocations: 2.036 MB / 3.931 GB, free: 408 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/5.294, allocations: 3.984 kB / 3.931 GB, free: 404 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008352/5.295, allocations: 171.9 kB / 3.931 GB, free: 232 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001416/5.295, allocations: 60.77 kB / 3.931 GB, free: 168 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.155e-05/5.295, allocations: 19.98 kB / 3.931 GB, free: 148 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000675/5.296, allocations: 1.205 MB / 3.932 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/5.296, allocations: 4 kB / 3.932 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002071/5.298, allocations: 1.398 MB / 3.933 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004258/5.298, allocations: 287.3 kB / 3.934 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/5.298, allocations: 15.84 kB / 3.934 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008489/5.299, allocations: 82.16 kB / 3.934 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/5.299, allocations: 48.48 kB / 3.934 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.583e-05/5.299, allocations: 35.98 kB / 3.934 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0008552/5.3, allocations: 0.6815 MB / 3.935 GB, free: 12.26 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002553/5.303, allocations: 1.014 MB / 3.935 GB, free: 11.25 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (fan.vol.dynBal.U,fan.vol.dynBal.m,fan.vol.dynBal.mXi[1],fan.filter.x[1],fan.filter.x[2],conPID.I.y) * Number of discrete variables: 3 ($whenCondition1,y.T_start,y.count) * Number of discrete states: 1 (y.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003649/5.306, allocations: 2.918 MB / 3.938 GB, free: 8.152 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002543/5.309, allocations: 1.535 MB / 3.94 GB, free: 6.586 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/5.309, allocations: 384 / 3.94 GB, free: 6.586 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0006436/5.31, allocations: 382.2 kB / 3.94 GB, free: 6.211 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002311/5.312, allocations: 0.5646 MB / 3.941 GB, free: 5.652 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00357/5.316, allocations: 2.053 MB / 3.943 GB, free: 3.547 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/5.317, allocations: 1.426 MB / 3.944 GB, free: 2.09 MB / 0.8855 GB Notification: Performance of SimCode: time 3.61e-07/5.317, allocations: 0 / 3.944 GB, free: 2.09 MB / 0.8855 GB Notification: Performance of Templates: time 0.2864/5.603, allocations: 43.92 MB / 3.987 GB, free: 222.2 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Movers_Examples_ClosedLoop_y.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.ClosedLoop_y.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches