Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001768/0.001768, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002099/0.002099, allocations: 191 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 239.9 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.592/2.592, allocations: 437 MB / 0.71 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.91 kB / 0.8687 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.636/0.6372, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.00427/0.6416, allocations: 1.865 MB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.6428, allocations: 0.5454 MB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.643, allocations: 4 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001769/0.6433, allocations: 19.73 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.6434, allocations: 23.78 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002638/0.6437, allocations: 51.95 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002714/0.6439, allocations: 171.5 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.6441, allocations: 49.64 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.955e-05/0.6442, allocations: 51.8 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.345e-05/0.6443, allocations: 67.64 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.6443, allocations: 8 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.215e-05/0.6444, allocations: 12 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.11e-05/0.6444, allocations: 35.83 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.151e-05/0.6445, allocations: 63.61 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.6447, allocations: 129.4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.6447, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.024e-06/0.6447, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.6447, allocations: 4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007786/0.6455, allocations: 466.7 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.6456, allocations: 8.031 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.156e-05/0.6456, allocations: 20.75 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.6459, allocations: 240.3 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.6459, allocations: 16.23 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.646, allocations: 12.38 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.6463, allocations: 148.5 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.6463, allocations: 7.922 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.6463, allocations: 8 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.6463, allocations: 4 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002279/0.6465, allocations: 71.88 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009251/0.6475, allocations: 0.7354 MB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.6476, allocations: 46.55 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.6478, allocations: 36.84 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.6478, allocations: 4 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.6481, allocations: 126.6 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.003e-06/0.6481, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004977/0.6486, allocations: 169.5 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.6487, allocations: 132.5 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000201/0.6489, allocations: 195 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.6489, allocations: 33.7 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/0.649, allocations: 127.8 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.533e-05/0.6491, allocations: 35.75 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.719e-05/0.6492, allocations: 41.7 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.6493, allocations: 334.9 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.6494, allocations: 31.98 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.6496, allocations: 155.6 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.65, allocations: 194.4 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.65, allocations: 4 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004474/0.6504, allocations: 213 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.6505, allocations: 7.938 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.6505, allocations: 4 kB / 1.023 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.6505, allocations: 8 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.6506, allocations: 36.36 kB / 1.023 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.6507, allocations: 15.92 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.6508, allocations: 27.83 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.6508, allocations: 8 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001255/0.651, allocations: 141.7 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.178e-05/0.651, allocations: 15.81 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.403e-05/0.6511, allocations: 21.39 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.6511, allocations: 4 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.6511, allocations: 4 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.6511, allocations: 240 / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008025/0.6519, allocations: 0.5132 MB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.6519, allocations: 0 / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.652, allocations: 15.98 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.6521, allocations: 4 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.6521, allocations: 8 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.6521, allocations: 0 / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6521, allocations: 12.19 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004952/0.6526, allocations: 352.2 kB / 1.024 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.763e-05/0.6527, allocations: 100.9 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.6527, allocations: 8 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.6529, allocations: 7.984 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.729e-05/0.653, allocations: 23.86 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.653, allocations: 4 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000107/0.6531, allocations: 136.6 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6531, allocations: 4 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00034/0.6534, allocations: 28 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001554/0.6536, allocations: 107.2 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003306/0.6539, allocations: 120.7 kB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.6539, allocations: 0 / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.6541, allocations: 51.91 kB / 1.025 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005775/0.6547, allocations: 70.81 kB / 1.025 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006403/0.6553, allocations: 392.7 kB / 1.025 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.6557, allocations: 0.7203 MB / 1.026 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.973e-05/0.6558, allocations: 17.55 kB / 1.026 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.581e-05/0.6559, allocations: 19.44 kB / 1.026 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of SimCode: time 4.41e-07/0.6559, allocations: 0 / 1.026 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of Templates: time 0.005374/0.6613, allocations: 1.907 MB / 1.028 GB, free: 6.727 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches