Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.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_9_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_9_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.00164/0.00164, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001836/0.001836, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.317/2.317, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002384/0.002384, allocations: 63.91 kB / 0.9515 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9376/0.94, allocations: 140.4 MB / 1.089 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003172/0.9433, allocations: 1.83 MB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001014/0.9443, allocations: 0.5384 MB / 1.091 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.9444, allocations: 6.156 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001568/0.9446, allocations: 27.39 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.643e-05/0.9447, allocations: 25.48 kB / 1.091 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.9449, allocations: 74.03 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.9452, allocations: 169.9 kB / 1.091 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.9454, allocations: 52.14 kB / 1.091 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.9455, allocations: 61.56 kB / 1.091 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.794e-05/0.9456, allocations: 53.03 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.9456, allocations: 10.03 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.7e-05/0.9457, allocations: 10.59 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.329e-05/0.9457, allocations: 30.58 kB / 1.091 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.429e-05/0.9458, allocations: 63.72 kB / 1.091 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.946, allocations: 141.3 kB / 1.092 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.946, allocations: 0 / 1.092 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.014e-06/0.946, allocations: 0 / 1.092 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.946, allocations: 5.156 kB / 1.092 GB, free: 3.734 MB / 0.8575 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.0006946/0.9467, allocations: 473.2 kB / 1.092 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.9468, allocations: 9.156 kB / 1.092 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.954e-05/0.9469, allocations: 19.58 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003046/0.9472, allocations: 233 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.9472, allocations: 12.88 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.847e-05/0.9472, allocations: 12.83 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003185/0.9476, allocations: 148.1 kB / 1.092 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.9476, allocations: 4.766 kB / 1.092 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.9476, allocations: 10.28 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.9476, allocations: 6.281 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002437/0.9479, allocations: 72.94 kB / 1.093 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008577/0.9487, allocations: 0.7372 MB / 1.093 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001545/0.9489, allocations: 44.17 kB / 1.093 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.949, allocations: 34.62 kB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.9491, allocations: 1.531 kB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002256/0.9493, allocations: 127.1 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.243e-06/0.9493, allocations: 0 / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005012/0.9498, allocations: 166.1 kB / 1.094 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.9499, allocations: 135.7 kB / 1.094 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.9501, allocations: 196 kB / 1.094 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.9501, allocations: 31.22 kB / 1.094 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.589e-05/0.9502, allocations: 133.8 kB / 1.094 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/0.9502, allocations: 35.38 kB / 1.094 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.601e-05/0.9503, allocations: 40.17 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.218e-05/0.9504, allocations: 329 kB / 1.095 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.9505, allocations: 41.22 kB / 1.095 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.9507, allocations: 156 kB / 1.095 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002896/0.951, allocations: 201.9 kB / 1.095 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.951, allocations: 1.219 kB / 1.095 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004411/0.9515, allocations: 208 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.9515, allocations: 7.375 kB / 1.095 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.9515, allocations: 8.375 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.919e-05/0.9515, allocations: 5.156 kB / 1.095 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.9517, allocations: 33.42 kB / 1.095 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.9517, allocations: 5.609 kB / 1.095 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.9519, allocations: 32.62 kB / 1.095 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.9519, allocations: 8.719 kB / 1.095 GB, free: 0.7344 MB / 0.8575 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.0001056/0.952, allocations: 145.5 kB / 1.095 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.952, allocations: 17.77 kB / 1.095 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.849e-05/0.9521, allocations: 20.03 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.9521, allocations: 2.641 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.9521, allocations: 1.812 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.9521, allocations: 5.172 kB / 1.095 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007758/0.9529, allocations: 0.5142 MB / 1.096 GB, free: 144 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.9529, allocations: 1.594 kB / 1.096 GB, free: 144 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.9531, allocations: 20.08 kB / 1.096 GB, free: 140 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.9531, allocations: 1.219 kB / 1.096 GB, free: 140 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.9531, allocations: 6.984 kB / 1.096 GB, free: 136 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.9531, allocations: 1.562 kB / 1.096 GB, free: 136 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.9531, allocations: 13.84 kB / 1.096 GB, free: 124 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006047/0.9538, allocations: 349.5 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.197e-05/0.9538, allocations: 99 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.9539, allocations: 11.2 kB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.9541, allocations: 11.45 kB / 1.096 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/0.9542, allocations: 21.67 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.9542, allocations: 5.578 kB / 1.096 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001586/0.9543, allocations: 137.5 kB / 1.097 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9543, allocations: 0.9688 kB / 1.097 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003515/0.9547, allocations: 30.28 kB / 1.097 GB, free: 15.63 MB / 0.8731 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.0001656/0.9549, allocations: 110.9 kB / 1.097 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003883/0.9553, allocations: 114.7 kB / 1.097 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.9553, allocations: 0.875 kB / 1.097 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.9555, allocations: 55.14 kB / 1.097 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006045/0.9561, allocations: 63.55 kB / 1.097 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007755/0.9569, allocations: 374.8 kB / 1.097 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.9573, allocations: 0.7238 MB / 1.098 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.001e-05/0.9574, allocations: 18.12 kB / 1.098 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/0.9574, allocations: 0 / 1.098 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of Templates: time 0.006429/0.9638, allocations: 2.149 MB / 1.1 GB, free: 14.27 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches