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: 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.00117/0.00117, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001127/0.001127, allocations: 193.5 kB / 16.13 MB, free: 6.645 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.392/1.392, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.78/2.78, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 70.64 kB / 0.9114 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.334, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003777/0.3379, allocations: 1.884 MB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001092/0.339, allocations: 0.5376 MB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.3392, allocations: 3.938 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.3394, allocations: 19.84 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.432e-05/0.3395, allocations: 19.8 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002623/0.3398, allocations: 59.94 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002587/0.34, allocations: 163.4 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.3402, allocations: 45.66 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.3403, allocations: 55.72 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.013e-05/0.3404, allocations: 47.7 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.3404, allocations: 8 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.284e-05/0.3405, allocations: 8 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.419e-05/0.3405, allocations: 35.78 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.832e-05/0.3406, allocations: 59.61 kB / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001707/0.3408, allocations: 119.8 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3408, allocations: 4 kB / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.41e-07/0.3408, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.3408, allocations: 0 / 1.071 GB, free: 7.824 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.0007822/0.3416, allocations: 470.7 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.3417, allocations: 12.03 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.194e-05/0.3417, allocations: 20.73 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.342, allocations: 227.9 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.3421, allocations: 12.38 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.3421, allocations: 16.38 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.3425, allocations: 150.2 kB / 1.071 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.3425, allocations: 4 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.3425, allocations: 3.984 kB / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3426, allocations: 4 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002761/0.3428, allocations: 71.89 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.3439, allocations: 0.7353 MB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000162/0.3441, allocations: 54.48 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.3442, allocations: 28.84 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.3442, allocations: 3.984 kB / 1.072 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.3446, allocations: 126.7 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 3.116e-06/0.3446, allocations: 0 / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0005267/0.3451, allocations: 173.5 kB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/0.3452, allocations: 128.5 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.3454, allocations: 206.7 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.3454, allocations: 29.7 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.488e-05/0.3455, allocations: 127.9 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.528e-05/0.3456, allocations: 31.7 kB / 1.073 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.771e-05/0.3457, allocations: 53.55 kB / 1.073 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.3458, allocations: 334.8 kB / 1.073 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.346, allocations: 35.97 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.3462, allocations: 143.9 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.3465, allocations: 206.3 kB / 1.074 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3465, allocations: 4 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004159/0.3469, allocations: 201.1 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.347, allocations: 14.12 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.347, allocations: 4 kB / 1.074 GB, free: 3.859 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.347, allocations: 4 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.3471, allocations: 32.47 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.3471, allocations: 11.94 kB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.3473, allocations: 27.83 kB / 1.074 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.3473, allocations: 11.94 kB / 1.074 GB, free: 3.773 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.0001225/0.3475, allocations: 137.7 kB / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.275e-05/0.3475, allocations: 15.81 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.669e-05/0.3475, allocations: 21.39 kB / 1.074 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.3476, allocations: 4 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3476, allocations: 0 / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3476, allocations: 8 kB / 1.074 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008535/0.3484, allocations: 0.5134 MB / 1.075 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.3484, allocations: 0 / 1.075 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.3486, allocations: 19.92 kB / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.3486, allocations: 4 kB / 1.075 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.3486, allocations: 7.984 kB / 1.075 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3486, allocations: 4 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3486, allocations: 3.938 kB / 1.075 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005236/0.3492, allocations: 360.2 kB / 1.075 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.148e-05/0.3492, allocations: 88.92 kB / 1.075 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.3493, allocations: 4 kB / 1.075 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.3495, allocations: 16.03 kB / 1.075 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.664e-05/0.3495, allocations: 15.91 kB / 1.075 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.3496, allocations: 4 kB / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001305/0.3497, allocations: 143.2 kB / 1.075 GB, free: 2.312 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3497, allocations: 4 kB / 1.075 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003519/0.3501, allocations: 27.91 kB / 1.075 GB, free: 2.281 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.000129/0.3502, allocations: 103.7 kB / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003532/0.3506, allocations: 112.7 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3506, allocations: 4.062 kB / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.3507, allocations: 55.97 kB / 1.076 GB, free: 2.004 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005634/0.3513, allocations: 61.25 kB / 1.076 GB, free: 1.945 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006773/0.352, allocations: 388.4 kB / 1.076 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.3523, allocations: 0.7245 MB / 1.077 GB, free: 0.7773 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.677e-05/0.3524, allocations: 17.55 kB / 1.077 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.3525, allocations: 19.44 kB / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of SimCode: time 5.61e-07/0.3525, allocations: 0 / 1.077 GB, free: 0.7422 MB / 0.8262 GB Notification: Performance of Templates: time 0.005216/0.3577, allocations: 1.832 MB / 1.079 GB, free: 14.93 MB / 0.8419 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches