Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.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.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006135/0.006135, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001301/0.001301, allocations: 197.2 kB / 16.68 MB, free: 5.93 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.536/1.536, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.491/2.491, allocations: 390.2 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001309, allocations: 63.91 kB / 0.9509 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.18/1.181, allocations: 140.4 MB / 1.088 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002554/1.184, allocations: 0.8835 MB / 1.089 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001807/1.186, allocations: 1.176 MB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.127e-05/1.186, allocations: 1.25 kB / 1.09 GB, free: 4.066 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.303e-05/1.186, allocations: 13.56 kB / 1.09 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.842e-05/1.186, allocations: 19.41 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006147/1.187, allocations: 146.9 kB / 1.09 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002735/1.187, allocations: 170.6 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/1.187, allocations: 36.86 kB / 1.09 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/1.187, allocations: 68.25 kB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/1.187, allocations: 68.16 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/1.187, allocations: 15.22 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.298e-05/1.187, allocations: 28.36 kB / 1.091 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.527e-05/1.187, allocations: 33.88 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.944e-05/1.188, allocations: 62.66 kB / 1.091 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002813/1.188, allocations: 170.5 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/1.188, allocations: 4.562 kB / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.934e-06/1.188, allocations: 0 / 1.091 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.753e-06/1.188, allocations: 0 / 1.091 GB, free: 3.684 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007474/1.189, allocations: 453.8 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/1.189, allocations: 9.344 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.394e-05/1.189, allocations: 13.83 kB / 1.091 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006227/1.189, allocations: 256.8 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/1.189, allocations: 8.406 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.703e-05/1.189, allocations: 14.73 kB / 1.092 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/1.19, allocations: 83.67 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/1.19, allocations: 3.938 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/1.19, allocations: 5.75 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/1.19, allocations: 2.188 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002142/1.19, allocations: 54.28 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007712/1.191, allocations: 389.4 kB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/1.191, allocations: 36.97 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/1.191, allocations: 30.38 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/1.191, allocations: 6.219 kB / 1.092 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003172/1.191, allocations: 92.8 kB / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/1.191, allocations: 0 / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0005151/1.192, allocations: 130.4 kB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/1.192, allocations: 64.78 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/1.192, allocations: 142.4 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.277e-05/1.192, allocations: 32.95 kB / 1.093 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.645e-05/1.192, allocations: 110.4 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/1.192, allocations: 33.98 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/1.192, allocations: 47.27 kB / 1.093 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.722e-05/1.192, allocations: 321.2 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001815/1.193, allocations: 58.03 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/1.193, allocations: 132.1 kB / 1.093 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/1.193, allocations: 203.5 kB / 1.093 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/1.193, allocations: 1.438 kB / 1.093 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005361/1.194, allocations: 240.9 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/1.194, allocations: 35.77 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/1.194, allocations: 3.375 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.304e-05/1.194, allocations: 4.531 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/1.194, allocations: 26.14 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/1.194, allocations: 12.83 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/1.194, allocations: 48.14 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/1.194, allocations: 11.05 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.567e-05/1.194, allocations: 132.9 kB / 1.094 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.06e-05/1.194, allocations: 8.812 kB / 1.094 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.683e-05/1.194, allocations: 12.66 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/1.194, allocations: 1.438 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/1.194, allocations: 8.594 kB / 1.094 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/1.195, allocations: 1.391 kB / 1.094 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005599/1.195, allocations: 392.6 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/1.195, allocations: 0.875 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/1.195, allocations: 20.62 kB / 1.094 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/1.195, allocations: 5.484 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/1.195, allocations: 1.469 kB / 1.094 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/1.195, allocations: 9.172 kB / 1.094 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.195, allocations: 0 / 1.094 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004526/1.196, allocations: 234.1 kB / 1.095 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.794e-05/1.196, allocations: 88.25 kB / 1.095 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/1.196, allocations: 6.922 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.511e-05/1.196, allocations: 10.64 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.658e-05/1.196, allocations: 6.203 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.258e-05/1.196, allocations: 13.16 kB / 1.095 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.347e-05/1.196, allocations: 106.6 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/1.196, allocations: 0 / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003165/1.196, allocations: 36.83 kB / 1.095 GB, free: 420 kB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0002083/1.197, allocations: 117.9 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004967/1.197, allocations: 187.9 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.197, allocations: 0 / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001343/1.197, allocations: 35.05 kB / 1.095 GB, free: 208 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/1.198, allocations: 17.61 kB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006461/1.198, allocations: 266.6 kB / 1.095 GB, free: 12 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003703/1.199, allocations: 0.7037 MB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.378e-05/1.199, allocations: 15.05 kB / 1.096 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.796e-05/1.199, allocations: 15.78 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/1.199, allocations: 0 / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of Templates: time 0.005811/1.205, allocations: 1.656 MB / 1.098 GB, free: 15.14 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches