Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008215/0.008215, allocations: 99.89 kB / 15.73 MB, free: 6.055 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.001864/0.001864, allocations: 192.1 kB / 16.68 MB, free: 5.969 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.719/2.719, allocations: 482.6 MB / 0.7551 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001819/0.001819, allocations: 68.92 kB / 1.083 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3596, allocations: 162.3 MB / 1.242 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003092/0.3628, allocations: 1.83 MB / 1.244 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009046/0.3637, allocations: 0.5416 MB / 1.244 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.335e-05/0.3638, allocations: 3.938 kB / 1.244 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.3639, allocations: 23.73 kB / 1.244 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.997e-05/0.364, allocations: 27.73 kB / 1.244 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002043/0.3642, allocations: 59.91 kB / 1.244 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.3645, allocations: 175.4 kB / 1.244 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.3646, allocations: 49.66 kB / 1.244 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.246e-05/0.3647, allocations: 59.7 kB / 1.245 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.306e-05/0.3648, allocations: 55.64 kB / 1.245 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.709e-05/0.3648, allocations: 8 kB / 1.245 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 2.227e-05/0.3649, allocations: 12 kB / 1.245 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.669e-05/0.3649, allocations: 23.92 kB / 1.245 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.927e-05/0.365, allocations: 63.61 kB / 1.245 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.3652, allocations: 151.5 kB / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3652, allocations: 0 / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3652, allocations: 0 / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.468e-06/0.3652, allocations: 0 / 1.245 GB, free: 5.785 MB / 0.9669 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.0007196/0.366, allocations: 482.5 kB / 1.245 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.366, allocations: 8.031 kB / 1.245 GB, free: 5.258 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.35e-05/0.3661, allocations: 42.73 kB / 1.245 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.733e-05/0.3661, allocations: 20.84 kB / 1.245 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.3664, allocations: 232.6 kB / 1.246 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.3664, allocations: 8.375 kB / 1.246 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.499e-05/0.3665, allocations: 24.3 kB / 1.246 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.3668, allocations: 147.9 kB / 1.246 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3668, allocations: 4 kB / 1.246 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.3668, allocations: 0 / 1.246 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.3668, allocations: 4 kB / 1.246 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002257/0.367, allocations: 75.83 kB / 1.246 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009117/0.368, allocations: 0.7433 MB / 1.247 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.3681, allocations: 42.56 kB / 1.247 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.3682, allocations: 36.83 kB / 1.247 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.3683, allocations: 4 kB / 1.247 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002372/0.3685, allocations: 126.7 kB / 1.247 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.3685, allocations: 0 / 1.247 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0004612/0.369, allocations: 161.5 kB / 1.247 GB, free: 3.43 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.415e-05/0.3691, allocations: 136.5 kB / 1.247 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.3693, allocations: 199 kB / 1.247 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.3693, allocations: 41.58 kB / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.3694, allocations: 128.1 kB / 1.247 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.63e-05/0.3695, allocations: 43.94 kB / 1.247 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.963e-05/0.3695, allocations: 41.7 kB / 1.247 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3697, allocations: 330.8 kB / 1.248 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.3698, allocations: 35.97 kB / 1.248 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.37, allocations: 146.5 kB / 1.248 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003257/0.3703, allocations: 198.3 kB / 1.248 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.399e-06/0.3703, allocations: 4 kB / 1.248 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004033/0.3707, allocations: 213.3 kB / 1.248 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.3708, allocations: 9.875 kB / 1.248 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.3708, allocations: 4.5 kB / 1.248 GB, free: 1.758 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3708, allocations: 8 kB / 1.248 GB, free: 1.75 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.3709, allocations: 35.92 kB / 1.248 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.3709, allocations: 7.984 kB / 1.248 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001452/0.3711, allocations: 27.88 kB / 1.248 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.3711, allocations: 8 kB / 1.248 GB, free: 1.672 MB / 0.9669 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.0001114/0.3712, allocations: 137.7 kB / 1.249 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.3713, allocations: 15.91 kB / 1.249 GB, free: 1.512 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.574e-05/0.3713, allocations: 25.39 kB / 1.249 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3713, allocations: 4 kB / 1.249 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3713, allocations: 0 / 1.249 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.3713, allocations: 4.234 kB / 1.249 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007542/0.3721, allocations: 0.5209 MB / 1.249 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3721, allocations: 0 / 1.249 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.3722, allocations: 19.98 kB / 1.249 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3722, allocations: 0 / 1.249 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.3723, allocations: 8 kB / 1.249 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.3723, allocations: 3.938 kB / 1.249 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3723, allocations: 4 kB / 1.249 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000503/0.3728, allocations: 360.3 kB / 1.25 GB, free: 500 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.867e-05/0.3729, allocations: 93.05 kB / 1.25 GB, free: 388 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.3729, allocations: 4 kB / 1.25 GB, free: 384 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.3731, allocations: 19.92 kB / 1.25 GB, free: 364 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.595e-05/0.3731, allocations: 11.98 kB / 1.25 GB, free: 352 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.3731, allocations: 4 kB / 1.25 GB, free: 348 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.00011/0.3732, allocations: 140.6 kB / 1.25 GB, free: 208 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3732, allocations: 0 / 1.25 GB, free: 208 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003257/0.3736, allocations: 28 kB / 1.25 GB, free: 180 kB / 0.9669 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.0008254/0.3744, allocations: 0.913 MB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003132/0.3747, allocations: 116.7 kB / 1.251 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3748, allocations: 4.062 kB / 1.251 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.3749, allocations: 47.91 kB / 1.251 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005354/0.3754, allocations: 75.89 kB / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00259/0.378, allocations: 2.273 MB / 1.253 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.3784, allocations: 0.7242 MB / 1.254 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.85e-05/0.3785, allocations: 21.95 kB / 1.254 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.586e-05/0.3786, allocations: 55.41 kB / 1.254 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.3786, allocations: 0 / 1.254 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08327/0.4618, allocations: 4.025 MB / 1.258 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.63/9.092, allocations: 7.344 kB / 1.258 GB, free: 7.801 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches