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.001432/0.001432, allocations: 109.8 kB / 16.41 MB, free: 6.492 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.001484/0.001484, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.467/1.467, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.243/2.243, allocations: 390.3 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 63.91 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7935/0.7948, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002767/0.7977, allocations: 1.809 MB / 1.09 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008614/0.7985, allocations: 0.5499 MB / 1.091 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.684e-05/0.7987, allocations: 7.062 kB / 1.091 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.7988, allocations: 21.98 kB / 1.091 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.323e-05/0.7989, allocations: 26.05 kB / 1.091 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.7991, allocations: 68.14 kB / 1.091 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.7993, allocations: 173.3 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.7995, allocations: 48.58 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.346e-05/0.7996, allocations: 58.77 kB / 1.091 GB, free: 3.664 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.819e-05/0.7997, allocations: 55.95 kB / 1.091 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.917e-05/0.7997, allocations: 10.41 kB / 1.091 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.46e-05/0.7997, allocations: 11.03 kB / 1.091 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.547e-05/0.7998, allocations: 29.83 kB / 1.091 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.758e-05/0.7999, allocations: 67.44 kB / 1.091 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.8, allocations: 135.6 kB / 1.092 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.8001, allocations: 0.6562 kB / 1.092 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.193e-06/0.8001, allocations: 5.094 kB / 1.092 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.8001, allocations: 0 / 1.092 GB, free: 3.5 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.0006564/0.8007, allocations: 474.5 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.8008, allocations: 9.656 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.44e-05/0.8008, allocations: 18.86 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.8011, allocations: 233.3 kB / 1.092 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.8011, allocations: 9.562 kB / 1.092 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.709e-05/0.8012, allocations: 11.97 kB / 1.092 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003026/0.8015, allocations: 156.4 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.8015, allocations: 0.6562 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.8015, allocations: 6.109 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.8015, allocations: 2.75 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002335/0.8018, allocations: 72.75 kB / 1.093 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007714/0.8026, allocations: 0.734 MB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.8027, allocations: 52.06 kB / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.8028, allocations: 38.39 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.8029, allocations: 1.25 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.8031, allocations: 123.7 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.8031, allocations: 0 / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004635/0.8036, allocations: 165.3 kB / 1.094 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.8036, allocations: 131.8 kB / 1.094 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001726/0.8038, allocations: 204.3 kB / 1.094 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.8038, allocations: 27.02 kB / 1.094 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.233e-05/0.8039, allocations: 142 kB / 1.094 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.8039, allocations: 26.44 kB / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.484e-05/0.804, allocations: 40.66 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.658e-05/0.804, allocations: 328.5 kB / 1.095 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.8042, allocations: 49.42 kB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.8043, allocations: 152.5 kB / 1.095 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002718/0.8046, allocations: 209.2 kB / 1.095 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.8046, allocations: 1.688 kB / 1.095 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004149/0.805, allocations: 204.1 kB / 1.095 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.805, allocations: 10.14 kB / 1.095 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.8051, allocations: 7.734 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.8051, allocations: 5.062 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.8052, allocations: 37.98 kB / 1.095 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.8052, allocations: 9.547 kB / 1.095 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.8054, allocations: 24.09 kB / 1.095 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.8054, allocations: 13.34 kB / 1.095 GB, free: 0.4922 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 8.547e-05/0.8055, allocations: 146.8 kB / 1.095 GB, free: 360 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.8055, allocations: 17.5 kB / 1.095 GB, free: 352 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.43e-05/0.8056, allocations: 21.05 kB / 1.095 GB, free: 340 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.8056, allocations: 2.156 kB / 1.095 GB, free: 340 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.8056, allocations: 1.719 kB / 1.095 GB, free: 340 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.8056, allocations: 1.984 kB / 1.095 GB, free: 340 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007392/0.8064, allocations: 0.5138 MB / 1.096 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.8064, allocations: 1.156 kB / 1.096 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.8065, allocations: 19.92 kB / 1.096 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.8065, allocations: 1.75 kB / 1.096 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.8065, allocations: 7.062 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.8066, allocations: 1.844 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.8066, allocations: 5.188 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005329/0.8071, allocations: 357.2 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.14e-05/0.8072, allocations: 100.2 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.8072, allocations: 6.062 kB / 1.096 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.8074, allocations: 16.42 kB / 1.096 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.298e-05/0.8075, allocations: 17.78 kB / 1.096 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.8075, allocations: 4.594 kB / 1.096 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001258/0.8076, allocations: 138.9 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8076, allocations: 0 / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003371/0.808, allocations: 31.5 kB / 1.097 GB, free: 15.4 MB / 0.8731 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.0001304/0.8081, allocations: 103.2 kB / 1.097 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003542/0.8085, allocations: 117.9 kB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8085, allocations: 0.6562 kB / 1.097 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001619/0.8086, allocations: 51.91 kB / 1.097 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005886/0.8092, allocations: 71.75 kB / 1.097 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006354/0.8099, allocations: 367 kB / 1.097 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.8102, allocations: 0.724 MB / 1.098 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.703e-05/0.8103, allocations: 19.25 kB / 1.098 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of SimCode: time 1.994e-06/0.8103, allocations: 0 / 1.098 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of Templates: time 0.00462/0.8149, allocations: 2.145 MB / 1.1 GB, free: 14.04 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches