Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.01039/0.01039, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.00209/0.00209, allocations: 190.5 kB / 16.67 MB, free: 5.918 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.516/1.516, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.615/2.615, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 64.12 kB / 0.9508 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3765/0.378, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003732/0.3817, allocations: 1.818 MB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001233/0.383, allocations: 0.5454 MB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002/0.3832, allocations: 3.938 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.3834, allocations: 23.73 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.3836, allocations: 27.73 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.3839, allocations: 71.84 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.3842, allocations: 167.5 kB / 1.091 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.3844, allocations: 53.58 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.3846, allocations: 63.7 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.751e-05/0.3847, allocations: 55.64 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.039e-05/0.3847, allocations: 12 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.139e-05/0.3848, allocations: 12 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.164e-05/0.3848, allocations: 27.86 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.496e-05/0.3849, allocations: 63.61 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.3851, allocations: 139.4 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3851, allocations: 4 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.893e-06/0.3851, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.335e-06/0.3851, allocations: 0 / 1.091 GB, free: 14.42 MB / 0.8575 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.0008004/0.3859, allocations: 466.7 kB / 1.091 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.386, allocations: 16.02 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.253e-05/0.3861, allocations: 16.75 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.3864, allocations: 236.4 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.3865, allocations: 8.375 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.843e-05/0.3865, allocations: 12.38 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003114/0.3868, allocations: 151.5 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3868, allocations: 0 / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.874e-05/0.3869, allocations: 8 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.3869, allocations: 0 / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002189/0.3871, allocations: 75.81 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009901/0.3881, allocations: 0.743 MB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.3883, allocations: 42.5 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.642e-05/0.3884, allocations: 36.83 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.3884, allocations: 8 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.3886, allocations: 122.7 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.813e-06/0.3886, allocations: 0 / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004598/0.3891, allocations: 169.7 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.841e-05/0.3892, allocations: 136.5 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.3894, allocations: 195 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.3894, allocations: 29.7 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.873e-05/0.3895, allocations: 135.7 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.412e-05/0.3895, allocations: 39.55 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.805e-05/0.3896, allocations: 41.77 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3897, allocations: 326.8 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.3898, allocations: 39.97 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.39, allocations: 159.5 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/0.3903, allocations: 194.4 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3903, allocations: 0 / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003569/0.3906, allocations: 213 kB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3907, allocations: 4 kB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3907, allocations: 4 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.3907, allocations: 8.5 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.3908, allocations: 35.92 kB / 1.094 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.3909, allocations: 7.984 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.391, allocations: 27.83 kB / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.391, allocations: 8 kB / 1.094 GB, free: 10.38 MB / 0.8575 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.0001132/0.3911, allocations: 141.6 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.737e-05/0.3912, allocations: 23.75 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.443e-05/0.3912, allocations: 21.39 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3912, allocations: 0 / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3912, allocations: 8 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3912, allocations: 0 / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006859/0.3919, allocations: 0.5173 MB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3919, allocations: 4 kB / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.392, allocations: 15.98 kB / 1.095 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3921, allocations: 4 kB / 1.095 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.3921, allocations: 8 kB / 1.095 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3921, allocations: 0 / 1.095 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.3921, allocations: 3.938 kB / 1.095 GB, free: 9.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004639/0.3926, allocations: 360.2 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.721e-05/0.3926, allocations: 92.95 kB / 1.096 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.3927, allocations: 4 kB / 1.096 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.3928, allocations: 15.92 kB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.046e-05/0.3929, allocations: 23.86 kB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.3929, allocations: 4 kB / 1.096 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001006/0.393, allocations: 140.5 kB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.393, allocations: 4 kB / 1.096 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003173/0.3933, allocations: 35.84 kB / 1.096 GB, free: 8.863 MB / 0.8575 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.0001267/0.3935, allocations: 108.9 kB / 1.096 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003118/0.3938, allocations: 112.7 kB / 1.096 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3938, allocations: 4.062 kB / 1.096 GB, free: 8.637 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.3939, allocations: 47.91 kB / 1.096 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005304/0.3945, allocations: 63.75 kB / 1.096 GB, free: 8.531 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006304/0.3951, allocations: 348.7 kB / 1.097 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.3954, allocations: 0.7242 MB / 1.097 GB, free: 7.402 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.433e-05/0.3955, allocations: 25.73 kB / 1.097 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.836e-05/0.3956, allocations: 15.44 kB / 1.097 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/0.3956, allocations: 0 / 1.097 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of Templates: time 0.005622/0.4012, allocations: 2.032 MB / 1.099 GB, free: 5.355 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches