Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 110.8 kB / 16.37 MB, free: 6.004 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.001636/0.001636, allocations: 195.8 kB / 17.31 MB, free: 5.613 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.436/1.436, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.454/2.454, allocations: 437.1 MB / 0.7112 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 72.58 kB / 0.8707 GB, free: 1.473 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3051, allocations: 151.6 MB / 1.019 GB, free: 9.879 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002298/0.3075, allocations: 0.8836 MB / 1.02 GB, free: 8.988 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001485/0.309, allocations: 1.184 MB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.52e-05/0.3091, allocations: 0 / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.903e-05/0.3091, allocations: 11.88 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.202e-05/0.3092, allocations: 11.86 kB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005318/0.3097, allocations: 152.5 kB / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.31, allocations: 179.6 kB / 1.021 GB, free: 7.441 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.3101, allocations: 37.03 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.3103, allocations: 59.84 kB / 1.021 GB, free: 7.344 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.3104, allocations: 75.72 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.401e-05/0.3104, allocations: 16 kB / 1.021 GB, free: 7.254 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.532e-05/0.3105, allocations: 27.98 kB / 1.021 GB, free: 7.227 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.717e-05/0.3106, allocations: 23.91 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.501e-05/0.3107, allocations: 71.7 kB / 1.021 GB, free: 7.133 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.3109, allocations: 171.4 kB / 1.022 GB, free: 6.965 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3109, allocations: 0 / 1.022 GB, free: 6.965 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.946e-06/0.3109, allocations: 0 / 1.022 GB, free: 6.965 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.3109, allocations: 0 / 1.022 GB, free: 6.965 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007151/0.3117, allocations: 456.7 kB / 1.022 GB, free: 6.461 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.3117, allocations: 12.88 kB / 1.022 GB, free: 6.449 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.388e-05/0.3118, allocations: 16.78 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004946/0.3123, allocations: 256.1 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.3123, allocations: 4.375 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.3123, allocations: 16.38 kB / 1.022 GB, free: 6.125 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.3126, allocations: 96.67 kB / 1.022 GB, free: 6.027 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.3126, allocations: 3.938 kB / 1.022 GB, free: 6.023 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.3126, allocations: 4 kB / 1.022 GB, free: 6.02 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.3126, allocations: 0 / 1.022 GB, free: 6.02 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.3128, allocations: 47.95 kB / 1.023 GB, free: 5.973 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007002/0.3135, allocations: 392.5 kB / 1.023 GB, free: 5.539 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001231/0.3136, allocations: 38.56 kB / 1.023 GB, free: 5.492 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.632e-05/0.3137, allocations: 24.83 kB / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.3138, allocations: 0 / 1.023 GB, free: 5.465 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002402/0.314, allocations: 107.3 kB / 1.023 GB, free: 5.348 MB / 0.795 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.314, allocations: 0 / 1.023 GB, free: 5.348 MB / 0.795 GB Notification: Performance of matching and sorting (n=10): time 0.0004939/0.3145, allocations: 133.5 kB / 1.023 GB, free: 5.211 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.3146, allocations: 59.34 kB / 1.023 GB, free: 5.141 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.3147, allocations: 139.5 kB / 1.023 GB, free: 4.996 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.3147, allocations: 33.7 kB / 1.023 GB, free: 4.957 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.575e-05/0.3148, allocations: 116 kB / 1.024 GB, free: 4.84 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.098e-05/0.3149, allocations: 27.61 kB / 1.024 GB, free: 4.812 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.396e-05/0.3149, allocations: 41.7 kB / 1.024 GB, free: 4.766 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3151, allocations: 326.8 kB / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.3152, allocations: 43.95 kB / 1.024 GB, free: 4.395 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.3154, allocations: 131.1 kB / 1.024 GB, free: 4.227 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.3157, allocations: 208.6 kB / 1.024 GB, free: 3.977 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3158, allocations: 4 kB / 1.024 GB, free: 3.973 MB / 0.795 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004537/0.3162, allocations: 243.2 kB / 1.024 GB, free: 3.723 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.3163, allocations: 38.06 kB / 1.025 GB, free: 3.68 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.3163, allocations: 4 kB / 1.025 GB, free: 3.676 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3163, allocations: 4 kB / 1.025 GB, free: 3.672 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.3164, allocations: 19.98 kB / 1.025 GB, free: 3.652 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/0.3164, allocations: 15.81 kB / 1.025 GB, free: 3.637 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.3166, allocations: 47.8 kB / 1.025 GB, free: 3.59 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.3167, allocations: 8 kB / 1.025 GB, free: 3.582 MB / 0.795 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 0.0001026/0.3168, allocations: 136.3 kB / 1.025 GB, free: 3.441 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.777e-05/0.3168, allocations: 7.906 kB / 1.025 GB, free: 3.434 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.333e-05/0.3168, allocations: 12.72 kB / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3169, allocations: 7.938 kB / 1.025 GB, free: 3.414 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3169, allocations: 3.938 kB / 1.025 GB, free: 3.41 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3169, allocations: 0 / 1.025 GB, free: 3.41 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005182/0.3174, allocations: 402.3 kB / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.3174, allocations: 0 / 1.025 GB, free: 2.961 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.149e-05/0.3175, allocations: 11.98 kB / 1.025 GB, free: 2.949 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3175, allocations: 7.938 kB / 1.025 GB, free: 2.941 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.3175, allocations: 0 / 1.025 GB, free: 2.941 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3175, allocations: 0 / 1.025 GB, free: 2.941 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3175, allocations: 0 / 1.025 GB, free: 2.941 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.3179, allocations: 244.3 kB / 1.025 GB, free: 2.688 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-05/0.318, allocations: 93.03 kB / 1.025 GB, free: 2.578 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.318, allocations: 0 / 1.025 GB, free: 2.578 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.903e-05/0.3181, allocations: 16.02 kB / 1.026 GB, free: 2.562 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.3182, allocations: 11.98 kB / 1.026 GB, free: 2.551 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.3182, allocations: 4 kB / 1.026 GB, free: 2.547 MB / 0.795 GB Notification: Performance of sorting global known variables: time 9.341e-05/0.3183, allocations: 104.6 kB / 1.026 GB, free: 2.445 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3183, allocations: 4 kB / 1.026 GB, free: 2.441 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002883/0.3186, allocations: 39.89 kB / 1.026 GB, free: 2.402 MB / 0.795 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.0002157/0.3188, allocations: 107.2 kB / 1.026 GB, free: 2.289 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004102/0.3192, allocations: 180 kB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3192, allocations: 4.062 kB / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001172/0.3193, allocations: 43.91 kB / 1.026 GB, free: 2.055 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.3197, allocations: 27.83 kB / 1.026 GB, free: 2.027 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006206/0.3203, allocations: 253.1 kB / 1.026 GB, free: 1.758 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.3207, allocations: 0.7084 MB / 1.027 GB, free: 1.023 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 6.547e-05/0.3208, allocations: 16.64 kB / 1.027 GB, free: 1.008 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.414e-05/0.3208, allocations: 19.44 kB / 1.027 GB, free: 0.9883 MB / 0.795 GB Notification: Performance of SimCode: time 5.81e-07/0.3208, allocations: 0 / 1.027 GB, free: 0.9883 MB / 0.795 GB Notification: Performance of Templates: time 0.005088/0.3259, allocations: 1.644 MB / 1.029 GB, free: 15.37 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches