Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.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: translateModel(Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_latest_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_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.353/2.353, allocations: 393.5 MB / 408.4 MB, free: 11.12 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.001359/0.001359, allocations: 186.2 kB / 0.4902 GB, free: 2.289 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.565/1.565, allocations: 223.1 MB / 0.7992 GB, free: 14.61 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009359/0.0009356, allocations: 100.1 kB / 0.9396 GB, free: 1.816 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003413, allocations: 14.33 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3458, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.5264, allocations: 149.8 MB / 1.376 GB, free: 3.641 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/0.5267, allocations: 71.95 kB / 1.376 GB, free: 3.57 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00681/0.5335, allocations: 1.824 MB / 1.377 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.355e-06/0.5336, allocations: 0 / 1.377 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.704e-06/0.5336, allocations: 0 / 1.377 GB, free: 1.742 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003494/0.534, allocations: 349.7 kB / 1.378 GB, free: 1.355 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.534, allocations: 8.562 kB / 1.378 GB, free: 1.348 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.814e-05/0.5341, allocations: 7.984 kB / 1.378 GB, free: 1.34 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.5342, allocations: 174.9 kB / 1.378 GB, free: 1.129 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.5342, allocations: 0 / 1.378 GB, free: 1.129 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.5342, allocations: 0 / 1.378 GB, free: 1.129 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001119/0.5344, allocations: 37.69 kB / 1.378 GB, free: 1.086 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.5344, allocations: 0 / 1.378 GB, free: 1.086 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.5344, allocations: 4 kB / 1.378 GB, free: 1.082 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.5344, allocations: 4 kB / 1.378 GB, free: 1.078 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.095e-05/0.5344, allocations: 0 / 1.378 GB, free: 1.078 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001928/0.5346, allocations: 161.5 kB / 1.378 GB, free: 0.8711 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.387e-05/0.5347, allocations: 22.55 kB / 1.378 GB, free: 0.8398 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000626/0.5354, allocations: 0.5779 MB / 1.379 GB, free: 136 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.5354, allocations: 38.56 kB / 1.379 GB, free: 88 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.5354, allocations: 0 / 1.379 GB, free: 88 kB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0005379/0.536, allocations: 246.4 kB / 1.379 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.536, allocations: 59.56 kB / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.501e-05/0.5361, allocations: 93 kB / 1.379 GB, free: 15.62 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.5361, allocations: 25.7 kB / 1.379 GB, free: 15.59 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 4.494e-05/0.5362, allocations: 84.14 kB / 1.379 GB, free: 15.51 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.737e-05/0.5362, allocations: 15.8 kB / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-06/0.5362, allocations: 0 / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.5363, allocations: 314.8 kB / 1.38 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.677e-05/0.5364, allocations: 4 kB / 1.38 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.857e-05/0.5364, allocations: 25.7 kB / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.279e-05/0.5364, allocations: 8 kB / 1.38 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.5364, allocations: 0 / 1.38 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.646e-05/0.5365, allocations: 57.58 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.5365, allocations: 4 kB / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.5366, allocations: 0 / 1.38 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.5366, allocations: 3.984 kB / 1.38 GB, free: 15.06 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.166e-05/0.5366, allocations: 8 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.5366, allocations: 4.062 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.639e-05/0.5367, allocations: 0 / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.5367, allocations: 7.938 kB / 1.38 GB, free: 15.04 MB / 0.8855 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 () * Number of clocked 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 8.228e-05/0.5368, allocations: 109.8 kB / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.134e-05/0.5368, allocations: 4 kB / 1.38 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.5369, allocations: 57.17 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.5369, allocations: 0 / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.5369, allocations: 0 / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.5369, allocations: 4 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.5371, allocations: 161.6 kB / 1.38 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.5371, allocations: 0 / 1.38 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.225e-05/0.5371, allocations: 8 kB / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.5371, allocations: 0 / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.5372, allocations: 0 / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.5372, allocations: 3.938 kB / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5372, allocations: 0 / 1.38 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.5373, allocations: 81.02 kB / 1.38 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.715e-05/0.5374, allocations: 89.16 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.5374, allocations: 0 / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.822e-05/0.5374, allocations: 0 / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.184e-05/0.5374, allocations: 3.938 kB / 1.38 GB, free: 14.43 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.5375, allocations: 8 kB / 1.38 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.035e-05/0.5375, allocations: 79.69 kB / 1.38 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5375, allocations: 0 / 1.38 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002398/0.5378, allocations: 35.94 kB / 1.38 GB, free: 14.31 MB / 0.8855 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 () * Number of clocked 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.0002509/0.538, allocations: 140 kB / 1.38 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 7.918e-05/0.5381, allocations: 15.94 kB / 1.38 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.5381, allocations: 4 kB / 1.38 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 1.582e-05/0.5381, allocations: 7.984 kB / 1.38 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.555e-05/0.5382, allocations: 0 / 1.38 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002345/0.5385, allocations: 116.9 kB / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.5388, allocations: 0.6809 MB / 1.381 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.903e-05/0.5388, allocations: 16.09 kB / 1.381 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.734e-05/0.5388, allocations: 7.438 kB / 1.381 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of SimCode: time 2.21e-07/0.5388, allocations: 3.938 kB / 1.381 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of Templates: time 0.003062/0.5419, allocations: 1.045 MB / 1.382 GB, free: 12.22 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_BaseClasses_Examples_EqualPercentageDerivativeCheck.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches