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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: 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_latest_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_latest_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.006961/0.006961, allocations: 100.4 kB / 15.87 MB, free: 5.863 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.001669/0.001669, allocations: 190.9 kB / 16.79 MB, free: 5.805 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.324/1.324, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.736/2.736, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 65.83 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3203, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003038/0.3233, allocations: 1.872 MB / 1.055 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009498/0.3243, allocations: 0.5415 MB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.3245, allocations: 7.938 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.3246, allocations: 15.86 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.004e-05/0.3247, allocations: 27.78 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.325, allocations: 55.94 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002206/0.3252, allocations: 163.4 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.3254, allocations: 45.66 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.684e-05/0.3254, allocations: 47.72 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.78e-05/0.3255, allocations: 63.69 kB / 1.056 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.278e-05/0.3256, allocations: 4 kB / 1.056 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.149e-05/0.3256, allocations: 8 kB / 1.056 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.475e-05/0.3256, allocations: 23.86 kB / 1.056 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.391e-05/0.3257, allocations: 63.59 kB / 1.056 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001196/0.3258, allocations: 88.08 kB / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3258, allocations: 0 / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3258, allocations: 0 / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.3259, allocations: 0 / 1.056 GB, free: 5.266 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.0007422/0.3266, allocations: 474.7 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.3267, allocations: 15.97 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.548e-05/0.3267, allocations: 16.75 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.327, allocations: 231.8 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.327, allocations: 8.375 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.398e-05/0.327, allocations: 16.36 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.3274, allocations: 154.2 kB / 1.057 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.3274, allocations: 7.938 kB / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.3274, allocations: 0 / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.3274, allocations: 7.938 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.3276, allocations: 71.88 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009049/0.3286, allocations: 0.7315 MB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001559/0.3287, allocations: 54.5 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.3288, allocations: 32.83 kB / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.3289, allocations: 0 / 1.057 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00027/0.3291, allocations: 134.6 kB / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.262e-06/0.3291, allocations: 0 / 1.058 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004975/0.3297, allocations: 165.3 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.3297, allocations: 132.5 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.3299, allocations: 195.2 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.3299, allocations: 37.7 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.528e-05/0.33, allocations: 127.8 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.3301, allocations: 35.69 kB / 1.058 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-05/0.3301, allocations: 45.7 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3303, allocations: 326.8 kB / 1.059 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.3304, allocations: 35.97 kB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.3306, allocations: 151.2 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.3309, allocations: 202.3 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3309, allocations: 4 kB / 1.059 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003986/0.3313, allocations: 209.5 kB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.3313, allocations: 8 kB / 1.059 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3314, allocations: 4 kB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.3314, allocations: 4 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.3315, allocations: 31.92 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.3315, allocations: 7.938 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/0.3317, allocations: 27.83 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/0.3317, allocations: 11.94 kB / 1.059 GB, free: 1.219 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.0001073/0.3318, allocations: 146.8 kB / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.839e-05/0.3318, allocations: 15.81 kB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.354e-05/0.3319, allocations: 21.62 kB / 1.059 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.3319, allocations: 7.984 kB / 1.059 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3319, allocations: 0 / 1.059 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3319, allocations: 4.25 kB / 1.059 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007096/0.3326, allocations: 0.517 MB / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3326, allocations: 0 / 1.06 GB, free: 456 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.3328, allocations: 19.92 kB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.3328, allocations: 4 kB / 1.06 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.3328, allocations: 0 / 1.06 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3328, allocations: 0 / 1.06 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3328, allocations: 11.88 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004961/0.3333, allocations: 356.2 kB / 1.06 GB, free: 40 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.643e-05/0.3334, allocations: 92.86 kB / 1.06 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/0.3334, allocations: 8.031 kB / 1.06 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/0.3336, allocations: 19.98 kB / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.271e-05/0.3337, allocations: 11.92 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.002e-05/0.3337, allocations: 4 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001109/0.3338, allocations: 140.6 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3338, allocations: 4 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003345/0.3342, allocations: 24 kB / 1.061 GB, free: 15.72 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.0001227/0.3343, allocations: 107.2 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000311/0.3346, allocations: 115.8 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3346, allocations: 0 / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001506/0.3348, allocations: 53.03 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005752/0.3354, allocations: 62.75 kB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000637/0.336, allocations: 415.9 kB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.3363, allocations: 0.7245 MB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.191e-05/0.3364, allocations: 19.44 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of SimCode: time 5.51e-07/0.3364, allocations: 0 / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of Templates: time 0.004026/0.3404, allocations: 2.126 MB / 1.064 GB, free: 12.05 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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