Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001172/0.001172, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.00113, allocations: 198.4 kB / 16.53 MB, free: 6.668 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.584/2.584, allocations: 437 MB / 0.7103 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 63.91 kB / 0.8692 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7445/0.7463, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003012/0.7493, allocations: 1.825 MB / 1.019 GB, free: 0.6562 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001023/0.7504, allocations: 0.5376 MB / 1.02 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.519e-05/0.7505, allocations: 7.938 kB / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.7506, allocations: 31.66 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.34e-05/0.7507, allocations: 19.75 kB / 1.02 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.7509, allocations: 67.91 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002127/0.7511, allocations: 163.5 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.7513, allocations: 53.64 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.995e-05/0.7514, allocations: 51.78 kB / 1.02 GB, free: 15.72 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.862e-05/0.7515, allocations: 59.64 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.7515, allocations: 15.94 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.025e-05/0.7516, allocations: 8 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.966e-05/0.7516, allocations: 31.84 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.006e-05/0.7517, allocations: 67.61 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001652/0.7519, allocations: 125.5 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.7519, allocations: 4 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.423e-06/0.7519, allocations: 0 / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.7519, allocations: 0 / 1.02 GB, free: 15.42 MB / 0.7794 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.0007267/0.7526, allocations: 476.6 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.7527, allocations: 11.97 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.941e-05/0.7527, allocations: 20.66 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.753, allocations: 224 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.753, allocations: 20.23 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.529e-05/0.753, allocations: 16.28 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.7533, allocations: 143.9 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.7533, allocations: 3.938 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.7534, allocations: 4 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.7534, allocations: 7.938 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002293/0.7536, allocations: 75.86 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008568/0.7545, allocations: 0.7354 MB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001372/0.7546, allocations: 50.55 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001118/0.7547, allocations: 32.84 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.7548, allocations: 4 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002853/0.7551, allocations: 130.7 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.7551, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004843/0.7556, allocations: 173.4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.7556, allocations: 128.5 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.7558, allocations: 199 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.7559, allocations: 29.7 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.641e-05/0.7559, allocations: 131.9 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.779e-05/0.756, allocations: 27.61 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.523e-05/0.7561, allocations: 45.7 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.7562, allocations: 334.8 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.7563, allocations: 31.98 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.7565, allocations: 151.6 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002982/0.7568, allocations: 202.4 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.7568, allocations: 3.938 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003764/0.7572, allocations: 213 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.7572, allocations: 8 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.7572, allocations: 4 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.7572, allocations: 4 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.7574, allocations: 32.42 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.7574, allocations: 11.98 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.7575, allocations: 27.83 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-05/0.7576, allocations: 12 kB / 1.024 GB, free: 11.36 MB / 0.7794 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 9.988e-05/0.7577, allocations: 137.7 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.776e-05/0.7577, allocations: 15.81 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.027e-05/0.7578, allocations: 25.39 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.7578, allocations: 0 / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.7578, allocations: 3.938 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.7578, allocations: 8 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007313/0.7585, allocations: 0.5095 MB / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.7585, allocations: 0 / 1.024 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.7587, allocations: 15.98 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.7587, allocations: 8.031 kB / 1.025 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.7587, allocations: 4 kB / 1.025 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.7587, allocations: 4 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.7587, allocations: 8.188 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004673/0.7592, allocations: 356.2 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.393e-05/0.7592, allocations: 108.8 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.7593, allocations: 0 / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.7595, allocations: 15.98 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.66e-05/0.7595, allocations: 11.92 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.998e-06/0.7595, allocations: 11.94 kB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001048/0.7596, allocations: 144.4 kB / 1.025 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7596, allocations: 4 kB / 1.025 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003336/0.76, allocations: 24 kB / 1.025 GB, free: 9.863 MB / 0.7794 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.0001407/0.7601, allocations: 107.2 kB / 1.025 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003418/0.7605, allocations: 116.6 kB / 1.025 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.7605, allocations: 8.125 kB / 1.025 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.7606, allocations: 47.91 kB / 1.025 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005358/0.7612, allocations: 63.25 kB / 1.026 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005414/0.7617, allocations: 348.7 kB / 1.026 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.762, allocations: 0.7281 MB / 1.027 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.841e-05/0.7621, allocations: 17.55 kB / 1.027 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/0.7621, allocations: 19.44 kB / 1.027 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.7621, allocations: 0 / 1.027 GB, free: 8.348 MB / 0.7794 GB Notification: Performance of Templates: time 0.004639/0.7668, allocations: 2.003 MB / 1.029 GB, free: 6.367 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches