Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.0008245/0.0008246, allocations: 92.16 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 182.6 kB / 16.92 MB, free: 6.926 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.383/1.383, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.742/2.742, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003333, allocations: 11.62 kB / 0.9035 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3095, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001224/0.3107, allocations: 0.6012 MB / 1.06 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001839/0.3126, allocations: 1.19 MB / 1.061 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.485e-05/0.3127, allocations: 0 / 1.061 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.686e-05/0.3127, allocations: 7.938 kB / 1.061 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001108/0.3128, allocations: 11.86 kB / 1.061 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005313/0.3134, allocations: 134.6 kB / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002211/0.3136, allocations: 147.7 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.3138, allocations: 41.08 kB / 1.061 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.3139, allocations: 55.78 kB / 1.061 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.314, allocations: 51.75 kB / 1.062 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.989e-05/0.3141, allocations: 8 kB / 1.062 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.21e-05/0.3142, allocations: 23.97 kB / 1.062 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.078e-05/0.3142, allocations: 19.92 kB / 1.062 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.544e-05/0.3143, allocations: 81.42 kB / 1.062 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.3145, allocations: 119.9 kB / 1.062 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.3145, allocations: 0 / 1.062 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3145, allocations: 0 / 1.062 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.3145, allocations: 0 / 1.062 GB, free: 2.465 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007309/0.3153, allocations: 428.9 kB / 1.062 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3153, allocations: 15.97 kB / 1.062 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.884e-05/0.3154, allocations: 24.73 kB / 1.062 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006017/0.316, allocations: 259.1 kB / 1.062 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.3161, allocations: 8.375 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.285e-05/0.3161, allocations: 16.31 kB / 1.062 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.3164, allocations: 94.2 kB / 1.063 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.3164, allocations: 3.938 kB / 1.063 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.3165, allocations: 4 kB / 1.063 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.3165, allocations: 7.984 kB / 1.063 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.3167, allocations: 47.97 kB / 1.063 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007949/0.3175, allocations: 392.4 kB / 1.063 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001381/0.3176, allocations: 50.48 kB / 1.063 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.3177, allocations: 28.97 kB / 1.063 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.3178, allocations: 3.984 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002979/0.3181, allocations: 99.34 kB / 1.063 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 2.205e-06/0.3181, allocations: 0 / 1.063 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004707/0.3186, allocations: 149.4 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.3186, allocations: 59.34 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.3188, allocations: 143.1 kB / 1.064 GB, free: 480 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.3188, allocations: 33.69 kB / 1.064 GB, free: 440 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.039e-05/0.3189, allocations: 108.1 kB / 1.064 GB, free: 328 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.307e-05/0.319, allocations: 27.61 kB / 1.064 GB, free: 300 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.585e-05/0.319, allocations: 21.7 kB / 1.064 GB, free: 272 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.3191, allocations: 326.8 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.3193, allocations: 55.91 kB / 1.064 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.3196, allocations: 135.1 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003858/0.32, allocations: 208.6 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.32, allocations: 4 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005599/0.3206, allocations: 247.3 kB / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.541e-05/0.3206, allocations: 33.7 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3206, allocations: 4 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3207, allocations: 4 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.3208, allocations: 31.91 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.3208, allocations: 7.938 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.3211, allocations: 55.88 kB / 1.065 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.3211, allocations: 11.98 kB / 1.065 GB, free: 15.05 MB / 0.8262 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.0001302/0.3213, allocations: 129.8 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.913e-05/0.3213, allocations: 7.906 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.889e-05/0.3213, allocations: 24.7 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.3213, allocations: 0 / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.3214, allocations: 7.875 kB / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.3214, allocations: 0 / 1.065 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006125/0.322, allocations: 406.3 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.322, allocations: 8 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.813e-05/0.3221, allocations: 19.92 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3221, allocations: 3.984 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.3222, allocations: 11.97 kB / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3222, allocations: 480 / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3222, allocations: 0 / 1.065 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004837/0.3227, allocations: 255.3 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.088e-05/0.3227, allocations: 92.89 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.3228, allocations: 4 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-05/0.3229, allocations: 4 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.027e-05/0.3229, allocations: 15.98 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.3229, allocations: 7.984 kB / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.584e-05/0.323, allocations: 105 kB / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.01e-07/0.323, allocations: 0 / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003147/0.3233, allocations: 32 kB / 1.066 GB, free: 13.84 MB / 0.8262 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.0002262/0.3236, allocations: 103.2 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004431/0.324, allocations: 195.1 kB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.324, allocations: 4 kB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.3242, allocations: 40.72 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.3245, allocations: 22.38 kB / 1.066 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006396/0.3252, allocations: 331.4 kB / 1.067 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.3255, allocations: 0.7163 MB / 1.067 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.887e-05/0.3255, allocations: 15.44 kB / 1.067 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.3255, allocations: 0 / 1.067 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of Templates: time 0.004019/0.3295, allocations: 1.712 MB / 1.069 GB, free: 10.64 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches