Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_9_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_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 100 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001032, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.582/2.582, allocations: 390.3 MB / 0.6653 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004184/0.0004185, allocations: 16 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7495/0.75, allocations: 142.3 MB / 0.9535 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck): time 0.0005647/0.7506, allocations: 267.3 kB / 0.9538 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004537/0.751, allocations: 304.4 kB / 0.9541 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.022e-05/0.7511, allocations: 0 / 0.9541 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.036e-06/0.7511, allocations: 1.094 kB / 0.9541 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.686e-05/0.7511, allocations: 0 / 0.9541 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000245/0.7514, allocations: 63.41 kB / 0.9541 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.95e-05/0.7514, allocations: 6.984 kB / 0.9541 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.044e-05/0.7515, allocations: 4.969 kB / 0.9541 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.757e-05/0.7515, allocations: 6.062 kB / 0.9541 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.479e-05/0.7515, allocations: 6.016 kB / 0.9541 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.202e-05/0.7515, allocations: 1.094 kB / 0.9541 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.7518, allocations: 178.1 kB / 0.9543 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.335e-06/0.7518, allocations: 1.094 kB / 0.9543 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.7518, allocations: 30.83 kB / 0.9543 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.78e-05/0.7519, allocations: 52.84 kB / 0.9544 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.7519, allocations: 4 kB / 0.9544 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.733e-06/0.7519, allocations: 0 / 0.9544 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.386e-06/0.7519, allocations: 1.031 kB / 0.9544 GB, free: 7.418 MB / 0.7169 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.000212/0.7522, allocations: 326.9 kB / 0.9547 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.7522, allocations: 9.656 kB / 0.9547 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.7522, allocations: 4.953 kB / 0.9547 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.822e-05/0.7523, allocations: 174 kB / 0.9549 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.796e-06/0.7523, allocations: 1.125 kB / 0.9549 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.7524, allocations: 4.875 kB / 0.9549 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.32e-05/0.7524, allocations: 34.64 kB / 0.9549 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.7525, allocations: 0 / 0.9549 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.7525, allocations: 0 / 0.9549 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.7525, allocations: 1.438 kB / 0.9549 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.035e-05/0.7525, allocations: 14.66 kB / 0.9549 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001232/0.7526, allocations: 149.5 kB / 0.9551 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.589e-05/0.7527, allocations: 30.44 kB / 0.9551 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004506/0.7532, allocations: 0.5803 MB / 0.9557 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.624e-05/0.7532, allocations: 32 kB / 0.9557 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.7532, allocations: 0 / 0.9557 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004106/0.7536, allocations: 255.8 kB / 0.956 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.331e-05/0.7536, allocations: 52.62 kB / 0.956 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.001e-05/0.7537, allocations: 93.83 kB / 0.9561 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.876e-06/0.7537, allocations: 29.7 kB / 0.9561 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.218e-05/0.7537, allocations: 85.22 kB / 0.9562 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.7538, allocations: 8.812 kB / 0.9562 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.637e-06/0.7538, allocations: 1.156 kB / 0.9562 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.114e-05/0.7538, allocations: 327.4 kB / 0.9565 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.597e-05/0.7538, allocations: 3.344 kB / 0.9565 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.303e-05/0.7539, allocations: 22.3 kB / 0.9566 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.986e-05/0.7539, allocations: 8.781 kB / 0.9566 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.7539, allocations: 1.344 kB / 0.9566 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.983e-05/0.754, allocations: 53.62 kB / 0.9566 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.754, allocations: 8.719 kB / 0.9566 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.754, allocations: 1.062 kB / 0.9566 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.754, allocations: 0 / 0.9566 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.131e-05/0.7541, allocations: 11.19 kB / 0.9566 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.7541, allocations: 0 / 0.9566 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.48e-05/0.7541, allocations: 5.562 kB / 0.9566 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.7541, allocations: 1.5 kB / 0.9566 GB, free: 4.883 MB / 0.7169 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 5.231e-05/0.7542, allocations: 110.9 kB / 0.9568 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-06/0.7542, allocations: 2.562 kB / 0.9568 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.973e-05/0.7543, allocations: 57.91 kB / 0.9568 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.7543, allocations: 0 / 0.9568 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.7543, allocations: 1.312 kB / 0.9568 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.7543, allocations: 48 / 0.9568 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.697e-05/0.7544, allocations: 162.3 kB / 0.957 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.7544, allocations: 0 / 0.957 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.904e-05/0.7544, allocations: 8.25 kB / 0.957 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.7544, allocations: 1 kB / 0.957 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.7545, allocations: 1.156 kB / 0.957 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.7545, allocations: 0 / 0.957 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.7545, allocations: 4.906 kB / 0.957 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.7546, allocations: 82.5 kB / 0.9571 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.606e-05/0.7546, allocations: 81.02 kB / 0.9571 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.7546, allocations: 0.9062 kB / 0.9571 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.318e-05/0.7547, allocations: 9.094 kB / 0.9571 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.714e-05/0.7547, allocations: 2.281 kB / 0.9571 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.7547, allocations: 5.281 kB / 0.9572 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.879e-05/0.7547, allocations: 85.61 kB / 0.9572 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7547, allocations: 0 / 0.9572 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002193/0.755, allocations: 26.47 kB / 0.9573 GB, free: 4.223 MB / 0.7169 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.0001788/0.7551, allocations: 137.9 kB / 0.9574 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.442e-05/0.7552, allocations: 11.44 kB / 0.9574 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.7552, allocations: 0 / 0.9574 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.719e-05/0.7552, allocations: 13.95 kB / 0.9574 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001004/0.7554, allocations: 15.28 kB / 0.9574 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000172/0.7555, allocations: 113 kB / 0.9575 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.279e-05/0.7556, allocations: 0.679 MB / 0.9582 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.395e-05/0.7557, allocations: 4.188 kB / 0.9582 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.228e-05/0.7557, allocations: 8.844 kB / 0.9582 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of SimCode: time 1.9e-07/0.7557, allocations: 0 / 0.9582 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of Templates: time 0.002865/0.7585, allocations: 1.181 MB / 0.9594 GB, free: 2.664 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_BaseClasses_Examples_EqualPercentageDerivativeCheck.csv","../files/Buildings_9_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches