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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001894/0.001895, 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.002087/0.002088, allocations: 190.8 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.919/1.919, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.833/2.833, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 69.33 kB / 0.8987 GB, free: 37.13 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3318, allocations: 157.4 MB / 1.052 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003521/0.3353, allocations: 1.894 MB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.3364, allocations: 0.5336 MB / 1.055 GB, free: 6.18 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.3365, allocations: 3.938 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.3367, allocations: 15.86 kB / 1.055 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.126e-05/0.3368, allocations: 31.78 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.3371, allocations: 55.95 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.3373, allocations: 163.5 kB / 1.055 GB, free: 5.914 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.3375, allocations: 57.62 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.324e-05/0.3376, allocations: 51.73 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.991e-05/0.3377, allocations: 63.64 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.683e-05/0.3377, allocations: 8 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.279e-05/0.3378, allocations: 12 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.448e-05/0.3378, allocations: 27.86 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.399e-05/0.3379, allocations: 71.58 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001592/0.338, allocations: 115.8 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3381, allocations: 0 / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.502e-06/0.3381, allocations: 3.938 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.351e-05/0.3381, allocations: 0 / 1.055 GB, free: 5.512 MB / 0.8106 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.0007435/0.3388, allocations: 486.7 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.3389, allocations: 8.625 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.298e-05/0.3389, allocations: 42.73 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.717e-05/0.339, allocations: 20.75 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.3393, allocations: 235.8 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.3393, allocations: 4.375 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.3393, allocations: 12.38 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003275/0.3397, allocations: 154 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.3397, allocations: 0 / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.3397, allocations: 4 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3397, allocations: 4 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002418/0.34, allocations: 77.42 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009179/0.3409, allocations: 0.7315 MB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.3411, allocations: 42.55 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.3412, allocations: 40.77 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.3412, allocations: 8.094 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003295/0.3416, allocations: 126.6 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.3416, allocations: 0 / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004985/0.3421, allocations: 165.3 kB / 1.058 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.456e-05/0.3422, allocations: 140.8 kB / 1.058 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.3423, allocations: 199 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.3424, allocations: 25.7 kB / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.119e-05/0.3425, allocations: 131.8 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.611e-05/0.3425, allocations: 35.55 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.163e-05/0.3426, allocations: 37.7 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.3427, allocations: 330.8 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.3428, allocations: 43.97 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.343, allocations: 150.4 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003029/0.3433, allocations: 202.3 kB / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3433, allocations: 0 / 1.059 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003966/0.3437, allocations: 205.2 kB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.3437, allocations: 5.094 kB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.3438, allocations: 4 kB / 1.059 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.3438, allocations: 8.234 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.3439, allocations: 35.92 kB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.3439, allocations: 15.94 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.3441, allocations: 28.14 kB / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.3441, allocations: 12 kB / 1.059 GB, free: 1.406 MB / 0.8106 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.0001088/0.3442, allocations: 140.5 kB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.3443, allocations: 19.81 kB / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.34e-05/0.3443, allocations: 17.41 kB / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3443, allocations: 0 / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3443, allocations: 4 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3443, allocations: 3.984 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007384/0.3451, allocations: 0.5132 MB / 1.06 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3451, allocations: 4 kB / 1.06 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.3453, allocations: 23.92 kB / 1.06 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.3453, allocations: 288 / 1.06 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.3453, allocations: 4 kB / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.3453, allocations: 3.938 kB / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3453, allocations: 4 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004894/0.3458, allocations: 356.2 kB / 1.06 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.333e-05/0.3459, allocations: 96.86 kB / 1.06 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.862e-05/0.3459, allocations: 4 kB / 1.06 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.3461, allocations: 19.95 kB / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.3461, allocations: 15.98 kB / 1.06 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.3462, allocations: 4 kB / 1.06 GB, free: 84 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001207/0.3463, allocations: 140.5 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3463, allocations: 0 / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003519/0.3467, allocations: 28 kB / 1.06 GB, free: 15.92 MB / 0.8262 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.0007613/0.3474, allocations: 0.9043 MB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003211/0.3478, allocations: 115.8 kB / 1.061 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3478, allocations: 0 / 1.061 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.3479, allocations: 52.91 kB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005766/0.3485, allocations: 65.98 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00272/0.3512, allocations: 2.298 MB / 1.064 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.3516, allocations: 0.7241 MB / 1.064 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001051/0.3517, allocations: 21.53 kB / 1.064 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.52e-05/0.3518, allocations: 55.36 kB / 1.065 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.3518, allocations: 0 / 1.065 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.941/3.293, allocations: 3.793 MB / 1.068 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002194/3.293, allocations: 216 kB / 1.068 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.665/6.958, allocations: 0.75 kB / 1.068 GB, free: 7.523 MB / 0.8262 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=50 --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