Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001321/0.001321, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001361/0.001362, allocations: 197.8 kB / 16.26 MB, free: 6.629 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.588/1.588, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.947/2.947, allocations: 469.8 MB / 0.7421 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 68.12 kB / 0.908 GB, free: 34.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3313, allocations: 159.1 MB / 1.063 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003529/0.3349, allocations: 1.87 MB / 1.065 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.3359, allocations: 0.5377 MB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.737e-05/0.336, allocations: 4 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.3362, allocations: 15.8 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.36e-05/0.3363, allocations: 19.84 kB / 1.066 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.3365, allocations: 59.88 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002485/0.3368, allocations: 167.5 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002022/0.337, allocations: 53.64 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.868e-05/0.3371, allocations: 51.8 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.634e-05/0.3372, allocations: 59.62 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.568e-05/0.3372, allocations: 8 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.562e-05/0.3373, allocations: 12 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.925e-05/0.3373, allocations: 27.86 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.999e-05/0.3374, allocations: 79.53 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002011/0.3376, allocations: 127.8 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.3376, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3376, allocations: 3.938 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.3377, allocations: 0 / 1.066 GB, free: 11.48 MB / 0.8262 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.0008187/0.3385, allocations: 470.7 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3385, allocations: 12.03 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.3386, allocations: 20.75 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.3389, allocations: 231.9 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.3389, allocations: 8.375 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.339, allocations: 12.38 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000313/0.3393, allocations: 144.9 kB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3393, allocations: 4 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.3393, allocations: 11.98 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.3394, allocations: 4 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/0.3396, allocations: 71.81 kB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.3406, allocations: 0.7392 MB / 1.068 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.3408, allocations: 42.56 kB / 1.068 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.3409, allocations: 40.83 kB / 1.068 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.341, allocations: 0 / 1.068 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003295/0.3413, allocations: 130.7 kB / 1.068 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.3413, allocations: 0 / 1.068 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0005309/0.3418, allocations: 165.5 kB / 1.069 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.517e-05/0.3419, allocations: 132.5 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.3422, allocations: 204.2 kB / 1.069 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.3422, allocations: 25.7 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.3423, allocations: 131.9 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.3424, allocations: 35.53 kB / 1.069 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.428e-05/0.3424, allocations: 45.77 kB / 1.069 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3426, allocations: 326.8 kB / 1.069 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.3427, allocations: 39.91 kB / 1.069 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.343, allocations: 160.6 kB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/0.3433, allocations: 198.4 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3433, allocations: 0 / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004132/0.3437, allocations: 205 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.3438, allocations: 9.406 kB / 1.07 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.3438, allocations: 4 kB / 1.07 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.3438, allocations: 4.5 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.3439, allocations: 39.92 kB / 1.07 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.344, allocations: 4 kB / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.3441, allocations: 27.81 kB / 1.07 GB, free: 7.457 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.914e-05/0.3441, allocations: 16 kB / 1.07 GB, free: 7.441 MB / 0.8262 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.0001308/0.3443, allocations: 133.7 kB / 1.07 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.3443, allocations: 15.81 kB / 1.07 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.045e-05/0.3444, allocations: 21.39 kB / 1.07 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3444, allocations: 8 kB / 1.07 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.84e-06/0.3444, allocations: 0 / 1.07 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.3444, allocations: 4 kB / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008561/0.3453, allocations: 0.5211 MB / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3453, allocations: 0 / 1.071 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.3454, allocations: 23.98 kB / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.3454, allocations: 4 kB / 1.071 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.3454, allocations: 0 / 1.071 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3454, allocations: 4 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3455, allocations: 4.25 kB / 1.071 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005756/0.346, allocations: 358.1 kB / 1.071 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.206e-05/0.3461, allocations: 92.95 kB / 1.071 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.3462, allocations: 12 kB / 1.071 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.3463, allocations: 11.98 kB / 1.071 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.3464, allocations: 15.92 kB / 1.071 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.3464, allocations: 4 kB / 1.071 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001371/0.3465, allocations: 147.4 kB / 1.071 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3466, allocations: 0 / 1.071 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003365/0.3469, allocations: 27.91 kB / 1.071 GB, free: 5.945 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.000143/0.347, allocations: 116.1 kB / 1.072 GB, free: 5.824 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003625/0.3474, allocations: 124.4 kB / 1.072 GB, free: 5.703 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3474, allocations: 3.938 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.3476, allocations: 47.91 kB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005731/0.3482, allocations: 59.59 kB / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007207/0.3489, allocations: 389.1 kB / 1.072 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.3493, allocations: 0.7203 MB / 1.073 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.157e-05/0.3494, allocations: 21.55 kB / 1.073 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.3494, allocations: 15.44 kB / 1.073 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of SimCode: time 1.095e-05/0.3494, allocations: 0 / 1.073 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of Templates: time 0.005496/0.3549, allocations: 1.924 MB / 1.075 GB, free: 2.5 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches