Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.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.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck") translateModel(Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck") [: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.189/1.189, allocations: 249.4 MB / 256.7 MB, free: 7.039 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.001015/0.001015, allocations: 181.2 kB / 316 MB, free: 3.531 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.038/1.038, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0007615/0.0007615, allocations: 86.2 kB / 0.671 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.091e-06/6.132e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1307, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3914/0.5221, allocations: 131.7 MB / 1.013 GB, free: 7.152 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000201/0.5224, allocations: 83.91 kB / 1.013 GB, free: 7.105 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.005739/0.5281, allocations: 1.525 MB / 1.015 GB, free: 5.801 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.5282, allocations: 4 kB / 1.015 GB, free: 5.797 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002244/0.5284, allocations: 337.2 kB / 1.015 GB, free: 5.426 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.5284, allocations: 12.03 kB / 1.015 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.689e-05/0.5285, allocations: 0 / 1.015 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.686e-05/0.5286, allocations: 167 kB / 1.015 GB, free: 5.211 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.5286, allocations: 3.938 kB / 1.015 GB, free: 5.207 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.5286, allocations: 7.906 kB / 1.015 GB, free: 5.199 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.052e-05/0.5286, allocations: 0 / 1.015 GB, free: 5.199 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.169e-05/0.5287, allocations: 32.7 kB / 1.015 GB, free: 5.164 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.5287, allocations: 4 kB / 1.015 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.5287, allocations: 4 kB / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.5287, allocations: 0 / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001186/0.5289, allocations: 130.2 kB / 1.015 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 3.75e-05/0.5289, allocations: 26.23 kB / 1.015 GB, free: 4.961 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.538e-05/0.5289, allocations: 4.859 kB / 1.015 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004647/0.5294, allocations: 0.5818 MB / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.5294, allocations: 38.41 kB / 1.016 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.5294, allocations: 4 kB / 1.016 GB, free: 4.191 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0004485/0.5299, allocations: 241.9 kB / 1.016 GB, free: 3.91 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.464e-05/0.5299, allocations: 51.41 kB / 1.016 GB, free: 3.848 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.451e-05/0.53, allocations: 92.94 kB / 1.016 GB, free: 3.75 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.093e-05/0.53, allocations: 25.7 kB / 1.016 GB, free: 3.719 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.208e-05/0.53, allocations: 83.27 kB / 1.017 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.684e-05/0.53, allocations: 8.016 kB / 1.017 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-06/0.5301, allocations: 8 kB / 1.017 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.575e-05/0.5301, allocations: 314.7 kB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.255e-05/0.5302, allocations: 4 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.923e-05/0.5302, allocations: 16.16 kB / 1.017 GB, free: 3.285 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.18e-05/0.5302, allocations: 10.92 kB / 1.017 GB, free: 3.277 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-07/0.5302, allocations: 0 / 1.017 GB, free: 3.277 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.457e-05/0.5303, allocations: 56.86 kB / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/0.5303, allocations: 4 kB / 1.017 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.5304, allocations: 0 / 1.017 GB, free: 3.215 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.848e-06/0.5304, allocations: 7.938 kB / 1.017 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.408e-05/0.5304, allocations: 7.984 kB / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.426e-06/0.5304, allocations: 0 / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.345e-05/0.5305, allocations: 0 / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.5305, allocations: 8 kB / 1.017 GB, free: 3.191 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.024e-05/0.5305, allocations: 104.9 kB / 1.017 GB, free: 3.082 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.5306, allocations: 8.062 kB / 1.017 GB, free: 3.074 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001256/0.5307, allocations: 53.44 kB / 1.017 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.5307, allocations: 0 / 1.017 GB, free: 3.02 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.5307, allocations: 3.938 kB / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.5307, allocations: 0 / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.357e-05/0.5308, allocations: 137.2 kB / 1.017 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.5308, allocations: 0 / 1.017 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.316e-05/0.5308, allocations: 15.92 kB / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.5309, allocations: 0 / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-06/0.5309, allocations: 0 / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.5309, allocations: 4 kB / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5309, allocations: 0 / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001184/0.531, allocations: 79.91 kB / 1.017 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.874e-05/0.531, allocations: 77.11 kB / 1.017 GB, free: 2.645 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.061e-05/0.531, allocations: 0 / 1.017 GB, free: 2.645 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.398e-05/0.5311, allocations: 0 / 1.017 GB, free: 2.645 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.362e-05/0.5311, allocations: 8.031 kB / 1.017 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.5311, allocations: 7.969 kB / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of sort global known variables: time 2.372e-05/0.5311, allocations: 75.7 kB / 1.018 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001966/0.5313, allocations: 39.5 kB / 1.018 GB, free: 2.52 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001907/0.5315, allocations: 143.1 kB / 1.018 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 5.466e-05/0.5316, allocations: 8 kB / 1.018 GB, free: 2.359 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.5316, allocations: 0 / 1.018 GB, free: 2.359 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.426e-05/0.5316, allocations: 15.88 kB / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.92e-05/0.5317, allocations: 0 / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001534/0.5319, allocations: 68.44 kB / 1.018 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.5321, allocations: 0.6946 MB / 1.018 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of SimCode: time 2.3e-07/0.5321, allocations: 3.938 kB / 1.018 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of Templates: time 0.00268/0.5348, allocations: 1.19 MB / 1.02 GB, free: 396 kB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_BaseClasses_Examples_EqualPercentageDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches