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.00155/0.00155, allocations: 103.4 kB / 16.27 MB, free: 5.965 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.001581/0.001581, allocations: 191 kB / 17.2 MB, free: 5.59 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.431/1.431, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.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.51/2.51, allocations: 437.1 MB / 0.7111 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 71.92 kB / 0.8699 GB, free: 2.219 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2882, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003239/0.2915, allocations: 1.822 MB / 1.02 GB, free: 8.84 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009932/0.2925, allocations: 0.5414 MB / 1.02 GB, free: 8.293 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.202e-05/0.2926, allocations: 7.938 kB / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.2927, allocations: 27.72 kB / 1.02 GB, free: 8.258 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.644e-05/0.2928, allocations: 27.73 kB / 1.02 GB, free: 8.23 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.293, allocations: 67.84 kB / 1.02 GB, free: 8.164 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002403/0.2933, allocations: 159.5 kB / 1.021 GB, free: 8.008 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.2934, allocations: 57.64 kB / 1.021 GB, free: 7.949 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.914e-05/0.2935, allocations: 51.73 kB / 1.021 GB, free: 7.898 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.728e-05/0.2936, allocations: 63.62 kB / 1.021 GB, free: 7.836 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.2937, allocations: 8 kB / 1.021 GB, free: 7.828 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 2.312e-05/0.2937, allocations: 12 kB / 1.021 GB, free: 7.816 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.2938, allocations: 31.84 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.58e-05/0.2939, allocations: 63.61 kB / 1.021 GB, free: 7.723 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.294, allocations: 131.7 kB / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2941, allocations: 0 / 1.021 GB, free: 7.594 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.051e-06/0.2941, allocations: 4 kB / 1.021 GB, free: 7.59 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.2941, allocations: 4 kB / 1.021 GB, free: 7.586 MB / 0.795 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.000746/0.2948, allocations: 466.7 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2949, allocations: 12.92 kB / 1.021 GB, free: 7.07 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.648e-05/0.2949, allocations: 16.75 kB / 1.021 GB, free: 7.055 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002656/0.2952, allocations: 227.9 kB / 1.022 GB, free: 6.793 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.2952, allocations: 12.23 kB / 1.022 GB, free: 6.781 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.33e-05/0.2953, allocations: 16.38 kB / 1.022 GB, free: 6.766 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.2956, allocations: 146.2 kB / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.2956, allocations: 0 / 1.022 GB, free: 6.602 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.2956, allocations: 8 kB / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.2956, allocations: 0 / 1.022 GB, free: 6.594 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002367/0.2959, allocations: 75.88 kB / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009632/0.2968, allocations: 0.7354 MB / 1.023 GB, free: 5.719 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.297, allocations: 54.48 kB / 1.023 GB, free: 5.656 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/0.2971, allocations: 28.84 kB / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.2972, allocations: 0 / 1.023 GB, free: 5.625 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003079/0.2975, allocations: 142.6 kB / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of pre-optimization done (n=11): time 1.142e-06/0.2975, allocations: 0 / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.0004909/0.298, allocations: 157.3 kB / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.167e-05/0.2981, allocations: 140.8 kB / 1.023 GB, free: 5.133 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.2983, allocations: 198.9 kB / 1.023 GB, free: 4.926 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.2983, allocations: 33.7 kB / 1.023 GB, free: 4.887 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.886e-05/0.2985, allocations: 131.9 kB / 1.023 GB, free: 4.754 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.918e-05/0.2985, allocations: 31.55 kB / 1.024 GB, free: 4.723 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.366e-05/0.2986, allocations: 45.64 kB / 1.024 GB, free: 4.672 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.000153/0.2987, allocations: 330.8 kB / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.2989, allocations: 43.97 kB / 1.024 GB, free: 4.297 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002116/0.2991, allocations: 143.8 kB / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003701/0.2995, allocations: 198.5 kB / 1.024 GB, free: 3.859 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.2995, allocations: 4 kB / 1.024 GB, free: 3.855 MB / 0.795 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004558/0.2999, allocations: 217.1 kB / 1.024 GB, free: 3.637 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.3, allocations: 8 kB / 1.024 GB, free: 3.629 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.3, allocations: 4 kB / 1.024 GB, free: 3.625 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.3, allocations: 4 kB / 1.024 GB, free: 3.621 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001916/0.3002, allocations: 31.92 kB / 1.024 GB, free: 3.59 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.3002, allocations: 7.984 kB / 1.024 GB, free: 3.582 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.3004, allocations: 32.2 kB / 1.025 GB, free: 3.551 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.3004, allocations: 8 kB / 1.025 GB, free: 3.543 MB / 0.795 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.0001261/0.3005, allocations: 133.7 kB / 1.025 GB, free: 3.402 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.3006, allocations: 19.81 kB / 1.025 GB, free: 3.383 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.763e-05/0.3006, allocations: 21.39 kB / 1.025 GB, free: 3.367 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3007, allocations: 4 kB / 1.025 GB, free: 3.363 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3007, allocations: 0 / 1.025 GB, free: 3.363 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3007, allocations: 0 / 1.025 GB, free: 3.363 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008317/0.3015, allocations: 0.5209 MB / 1.025 GB, free: 2.785 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3015, allocations: 0 / 1.025 GB, free: 2.785 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.3016, allocations: 19.92 kB / 1.025 GB, free: 2.766 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3017, allocations: 0 / 1.025 GB, free: 2.766 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.3017, allocations: 4 kB / 1.025 GB, free: 2.762 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3017, allocations: 0 / 1.025 GB, free: 2.762 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.3017, allocations: 11.94 kB / 1.025 GB, free: 2.75 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005371/0.3022, allocations: 356.5 kB / 1.026 GB, free: 2.379 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.739e-05/0.3023, allocations: 96.95 kB / 1.026 GB, free: 2.266 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.3024, allocations: 8 kB / 1.026 GB, free: 2.258 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.3025, allocations: 15.98 kB / 1.026 GB, free: 2.242 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.3026, allocations: 11.92 kB / 1.026 GB, free: 2.23 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.3026, allocations: 4 kB / 1.026 GB, free: 2.227 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001312/0.3027, allocations: 140.6 kB / 1.026 GB, free: 2.09 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3027, allocations: 3.938 kB / 1.026 GB, free: 2.086 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003383/0.3031, allocations: 28 kB / 1.026 GB, free: 2.059 MB / 0.795 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.0001385/0.3032, allocations: 115.1 kB / 1.026 GB, free: 1.934 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003406/0.3036, allocations: 116.7 kB / 1.026 GB, free: 1.82 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.3036, allocations: 4 kB / 1.026 GB, free: 1.816 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001572/0.3038, allocations: 55.97 kB / 1.026 GB, free: 1.762 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005679/0.3043, allocations: 67.67 kB / 1.026 GB, free: 1.699 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006374/0.305, allocations: 374.5 kB / 1.027 GB, free: 1.289 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004251/0.3054, allocations: 0.7203 MB / 1.027 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.848e-05/0.3055, allocations: 19.38 kB / 1.027 GB, free: 0.5195 MB / 0.795 GB Notification: Performance of SimCode: time 2.31e-07/0.3055, allocations: 7.938 kB / 1.027 GB, free: 0.5117 MB / 0.795 GB Notification: Performance of Templates: time 0.004227/0.3097, allocations: 2.134 MB / 1.029 GB, free: 14.39 MB / 0.8106 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=400 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches