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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001481/0.00148, allocations: 111.5 kB / 16.37 MB, free: 5.539 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.001679/0.001679, allocations: 192 kB / 17.31 MB, free: 5.18 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.423/1.423, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.482/2.482, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 58.58 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2931, allocations: 153 MB / 1.027 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003132/0.2963, allocations: 1.824 MB / 1.029 GB, free: 248 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009567/0.2973, allocations: 0.5415 MB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.632e-05/0.2974, allocations: 7.938 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001323/0.2975, allocations: 23.73 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.52e-05/0.2976, allocations: 27.72 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002059/0.2978, allocations: 71.86 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002238/0.298, allocations: 171.5 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.2982, allocations: 49.66 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.127e-05/0.2983, allocations: 51.72 kB / 1.029 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.211e-05/0.2984, allocations: 63.69 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.2984, allocations: 8 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.245e-05/0.2984, allocations: 12 kB / 1.03 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.276e-05/0.2985, allocations: 31.86 kB / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.786e-05/0.2986, allocations: 63.61 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.2987, allocations: 131.4 kB / 1.03 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.2988, allocations: 7.922 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2988, allocations: 0 / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.2988, allocations: 3.938 kB / 1.03 GB, free: 14.98 MB / 0.8106 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.0006483/0.2994, allocations: 470.7 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.2995, allocations: 16.03 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.143e-05/0.2995, allocations: 16.75 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002652/0.2998, allocations: 236.6 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.2998, allocations: 8.375 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.614e-05/0.2998, allocations: 12.38 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.3001, allocations: 147.2 kB / 1.031 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.3001, allocations: 0 / 1.031 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.3002, allocations: 11.94 kB / 1.031 GB, free: 13.98 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.3002, allocations: 3.984 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002061/0.3004, allocations: 69.09 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008546/0.3013, allocations: 0.7354 MB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.3014, allocations: 54.55 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.709e-05/0.3015, allocations: 24.84 kB / 1.031 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.3015, allocations: 4 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002236/0.3018, allocations: 130.6 kB / 1.032 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.443e-06/0.3018, allocations: 4 kB / 1.032 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004666/0.3023, allocations: 165.3 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.3023, allocations: 132.5 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001862/0.3025, allocations: 195 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.3026, allocations: 29.7 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.728e-05/0.3026, allocations: 136 kB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.07e-05/0.3027, allocations: 35.69 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.884e-05/0.3027, allocations: 41.7 kB / 1.032 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.3029, allocations: 334.8 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.303, allocations: 39.97 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.3032, allocations: 143.6 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.3035, allocations: 198.4 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3035, allocations: 4 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003745/0.3039, allocations: 213.4 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.3039, allocations: 4 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.3039, allocations: 8.031 kB / 1.033 GB, free: 11.03 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.3039, allocations: 8.234 kB / 1.033 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.3041, allocations: 31.92 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.3041, allocations: 7.984 kB / 1.033 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.3042, allocations: 28.08 kB / 1.033 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.3042, allocations: 8 kB / 1.033 GB, free: 10.95 MB / 0.8106 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.0001131/0.3044, allocations: 146.2 kB / 1.033 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/0.3044, allocations: 23.81 kB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.267e-05/0.3044, allocations: 21.39 kB / 1.033 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.3044, allocations: 4 kB / 1.033 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3045, allocations: 3.938 kB / 1.033 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3045, allocations: 3.938 kB / 1.033 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006942/0.3052, allocations: 0.517 MB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.3052, allocations: 4 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.3053, allocations: 15.98 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3053, allocations: 0 / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.3053, allocations: 4 kB / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3053, allocations: 0 / 1.034 GB, free: 10.14 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.3053, allocations: 7.875 kB / 1.034 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000447/0.3058, allocations: 360.2 kB / 1.034 GB, free: 9.758 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.879e-05/0.3059, allocations: 92.95 kB / 1.034 GB, free: 9.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.3059, allocations: 4 kB / 1.034 GB, free: 9.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/0.3061, allocations: 11.98 kB / 1.034 GB, free: 9.633 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.3061, allocations: 23.86 kB / 1.034 GB, free: 9.609 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.3061, allocations: 4 kB / 1.034 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001052/0.3062, allocations: 139.2 kB / 1.035 GB, free: 9.469 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3063, allocations: 0 / 1.035 GB, free: 9.469 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003257/0.3066, allocations: 28 kB / 1.035 GB, free: 9.441 MB / 0.8106 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.000117/0.3067, allocations: 107.2 kB / 1.035 GB, free: 9.324 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003112/0.307, allocations: 116 kB / 1.035 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.307, allocations: 0 / 1.035 GB, free: 9.211 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.3072, allocations: 47.91 kB / 1.035 GB, free: 9.164 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.3077, allocations: 75.48 kB / 1.035 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006271/0.3084, allocations: 348.5 kB / 1.035 GB, free: 8.719 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.3087, allocations: 0.7203 MB / 1.036 GB, free: 7.973 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.736e-05/0.3087, allocations: 25.86 kB / 1.036 GB, free: 7.949 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.299e-05/0.3088, allocations: 15.44 kB / 1.036 GB, free: 7.938 MB / 0.8106 GB Notification: Performance of SimCode: time 3.1e-07/0.3088, allocations: 3.938 kB / 1.036 GB, free: 7.934 MB / 0.8106 GB Notification: Performance of Templates: time 0.00489/0.3137, allocations: 2.012 MB / 1.038 GB, free: 5.949 MB / 0.8106 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches