Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.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.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration") translateModel(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008733/0.0008733, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009863/0.0009866, allocations: 172.7 kB / 15.95 MB, free: 208 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.523/1.523, allocations: 223.3 MB / 240 MB, free: 5.312 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.65/2.65, allocations: 390.9 MB / 0.666 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003901, allocations: 8 kB / 0.8154 GB, free: 13.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9431/0.9436, allocations: 142.4 MB / 0.9544 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.0007217/0.9443, allocations: 320.3 kB / 0.9547 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002069/0.9445, allocations: 32.08 kB / 0.9548 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.049e-05/0.9446, allocations: 0 / 0.9548 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.446e-05/0.9446, allocations: 0 / 0.9548 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.219e-05/0.9447, allocations: 4.938 kB / 0.9548 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001822/0.9449, allocations: 15.25 kB / 0.9548 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.791e-05/0.9449, allocations: 6.188 kB / 0.9548 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.116e-05/0.945, allocations: 4.906 kB / 0.9548 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.145e-05/0.945, allocations: 3.25 kB / 0.9548 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.82e-05/0.945, allocations: 4.984 kB / 0.9548 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.9451, allocations: 1.156 kB / 0.9548 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.778e-05/0.9452, allocations: 15.55 kB / 0.9548 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.526e-05/0.9452, allocations: 6.125 kB / 0.9548 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.242e-05/0.9452, allocations: 26.77 kB / 0.9549 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.146e-05/0.9453, allocations: 15.33 kB / 0.9549 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.9453, allocations: 4 kB / 0.9549 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.874e-06/0.9453, allocations: 1.062 kB / 0.9549 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.9453, allocations: 0 / 0.9549 GB, free: 7.422 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002425/0.9456, allocations: 351.1 kB / 0.9552 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.9456, allocations: 9.5 kB / 0.9552 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.382e-05/0.9457, allocations: 5.078 kB / 0.9552 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.176e-05/0.9457, allocations: 161 kB / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.9457, allocations: 1.156 kB / 0.9554 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.9458, allocations: 9.203 kB / 0.9554 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.9459, allocations: 62.42 kB / 0.9555 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.9459, allocations: 0 / 0.9555 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.9459, allocations: 4 kB / 0.9555 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/0.946, allocations: 9.016 kB / 0.9555 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.899e-05/0.946, allocations: 28.22 kB / 0.9555 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002711/0.9463, allocations: 255 kB / 0.9557 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.323e-05/0.9463, allocations: 29.03 kB / 0.9558 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.529e-05/0.9464, allocations: 10.88 kB / 0.9558 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 4.288e-06/0.9464, allocations: 0 / 0.9558 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.9464, allocations: 35.62 kB / 0.9558 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.9464, allocations: 0 / 0.9558 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001586/0.9466, allocations: 61.62 kB / 0.9559 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/0.9466, allocations: 82.41 kB / 0.9559 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.329e-05/0.9467, allocations: 121.6 kB / 0.9561 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.043e-06/0.9467, allocations: 30.64 kB / 0.9561 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.968e-05/0.9467, allocations: 94.67 kB / 0.9562 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.124e-05/0.9467, allocations: 16.89 kB / 0.9562 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-06/0.9467, allocations: 4.969 kB / 0.9562 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.745e-05/0.9468, allocations: 311.8 kB / 0.9565 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.292e-05/0.9468, allocations: 11.06 kB / 0.9565 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.339e-05/0.9469, allocations: 65.83 kB / 0.9566 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.994e-05/0.9469, allocations: 45.12 kB / 0.9566 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.9469, allocations: 1.062 kB / 0.9566 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000131/0.9471, allocations: 123.4 kB / 0.9567 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.9471, allocations: 32.83 kB / 0.9568 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.9471, allocations: 2.094 kB / 0.9568 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.9471, allocations: 6.328 kB / 0.9568 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.499e-05/0.9472, allocations: 14.5 kB / 0.9568 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.9472, allocations: 3.219 kB / 0.9568 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.247e-05/0.9473, allocations: 7.375 kB / 0.9568 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.588e-05/0.9473, allocations: 13.47 kB / 0.9568 GB, free: 5.379 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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.39e-05/0.9474, allocations: 145 kB / 0.9569 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.242e-05/0.9474, allocations: 6.172 kB / 0.957 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.331e-05/0.9474, allocations: 5.75 kB / 0.957 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.9474, allocations: 0 / 0.957 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.9474, allocations: 0 / 0.957 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.9474, allocations: 5.094 kB / 0.957 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.9476, allocations: 153 kB / 0.9571 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.9476, allocations: 1.25 kB / 0.9571 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.9476, allocations: 4 kB / 0.9571 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.9476, allocations: 1.312 kB / 0.9571 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.824e-06/0.9476, allocations: 3.953 kB / 0.9571 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.9476, allocations: 4.688 kB / 0.9571 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.9476, allocations: 0 / 0.9571 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.081e-05/0.9477, allocations: 161.9 kB / 0.9573 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.926e-05/0.9477, allocations: 82.17 kB / 0.9574 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.9477, allocations: 5.016 kB / 0.9574 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.789e-05/0.9478, allocations: 9.078 kB / 0.9574 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.381e-05/0.9478, allocations: 1.188 kB / 0.9574 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.9478, allocations: 1.969 kB / 0.9574 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.124e-05/0.9478, allocations: 90.23 kB / 0.9575 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9479, allocations: 1.156 kB / 0.9575 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002631/0.9481, allocations: 8.719 kB / 0.9575 GB, free: 4.645 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001492/0.9483, allocations: 110.4 kB / 0.9576 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001124/0.9484, allocations: 91.02 kB / 0.9577 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.9484, allocations: 0 / 0.9577 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.414e-05/0.9484, allocations: 60.19 kB / 0.9577 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.9486, allocations: 2.25 kB / 0.9577 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002157/0.9489, allocations: 109 kB / 0.9578 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.949, allocations: 0.6788 MB / 0.9585 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.515e-05/0.9491, allocations: 15.14 kB / 0.9585 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.008e-05/0.9491, allocations: 8.906 kB / 0.9585 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.9491, allocations: 0 / 0.9585 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of Templates: time 0.002608/0.9517, allocations: 495.7 kB / 0.959 GB, free: 3.32 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches