Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Plotters.Validation.PlotterActivationLocalInput,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|plotConfiguration.active|sca.active|scaDel.active",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput") translateModel(Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|plotConfiguration.active|sca.active|scaDel.active",fileNamePrefix="Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001222/0.001222, allocations: 196.6 kB / 16.26 MB, free: 6.629 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.429/1.429, allocations: 222.9 MB / 239.9 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.826/2.826, allocations: 472.6 MB / 0.7448 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 62.94 kB / 0.9115 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3437, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput): time 0.003441/0.3472, allocations: 1.886 MB / 1.07 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3487, allocations: 0.9435 MB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.097e-05/0.3488, allocations: 0 / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001947/0.349, allocations: 23.84 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000313/0.3493, allocations: 95.59 kB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003547/0.3497, allocations: 147.2 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002588/0.3499, allocations: 247.4 kB / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.3501, allocations: 37.64 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.3502, allocations: 119.6 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0215/0.3717, allocations: 1.651 MB / 1.073 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.932e-05/0.3718, allocations: 16 kB / 1.073 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.3719, allocations: 36 kB / 1.073 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.134e-05/0.372, allocations: 43.78 kB / 1.073 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.3722, allocations: 95.55 kB / 1.073 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003016/0.3725, allocations: 211.4 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3725, allocations: 0 / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3725, allocations: 4 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.3725, allocations: 0 / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0008267/0.3733, allocations: 0.5565 MB / 1.074 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.3734, allocations: 8.031 kB / 1.074 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.3735, allocations: 24.66 kB / 1.074 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002782/0.3738, allocations: 243.5 kB / 1.074 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.3738, allocations: 12 kB / 1.074 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.456e-05/0.3739, allocations: 16 kB / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.3741, allocations: 116.9 kB / 1.074 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3741, allocations: 0 / 1.074 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3741, allocations: 4 kB / 1.074 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.3741, allocations: 4 kB / 1.074 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.3743, allocations: 51.97 kB / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008179/0.3751, allocations: 0.5357 MB / 1.075 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001705/0.3753, allocations: 105.2 kB / 1.075 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.423e-05/0.3754, allocations: 41.78 kB / 1.075 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.3754, allocations: 3.984 kB / 1.075 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001996/0.3756, allocations: 129 kB / 1.075 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.3756, allocations: 4 kB / 1.075 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0003384/0.3759, allocations: 157.5 kB / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.376, allocations: 81.05 kB / 1.075 GB, free: 3.332 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.3762, allocations: 208.3 kB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.3763, allocations: 33.64 kB / 1.075 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.634e-05/0.3764, allocations: 120.5 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.199e-05/0.3764, allocations: 35.55 kB / 1.076 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.892e-05/0.3765, allocations: 61.78 kB / 1.076 GB, free: 2.855 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.3766, allocations: 330.8 kB / 1.076 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.329e-05/0.3767, allocations: 31.98 kB / 1.076 GB, free: 2.492 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.3769, allocations: 143.9 kB / 1.076 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.3771, allocations: 115.8 kB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3771, allocations: 0 / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002486/0.3774, allocations: 165.4 kB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.3774, allocations: 4 kB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3774, allocations: 0 / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.3774, allocations: 4 kB / 1.076 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.04e-05/0.3775, allocations: 15.94 kB / 1.076 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.3775, allocations: 4 kB / 1.076 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002293/0.3778, allocations: 31.81 kB / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.3778, allocations: 4 kB / 1.076 GB, free: 1.957 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 19 (plotConfiguration.tActivateLast,$PRE.plotConfiguration.tActivateLast,plotConfiguration.active,$whenCondition2,booPul.pulseStart,$PRE.booPul.pulseStart,booPul.y,scaDel.sampleTrigger,scaDel.tActivateLast,$PRE.scaDel.tActivateLast,scaDel.active,sca.sampleTrigger,sca.tActivateLast,$PRE.sca.tActivateLast,sca.active,$whenCondition1,$whenCondition3,$whenCondition4,plotConfiguration.activate_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001352/0.3779, allocations: 149.1 kB / 1.077 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.378, allocations: 15.81 kB / 1.077 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.774e-05/0.378, allocations: 21.52 kB / 1.077 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.378, allocations: 0 / 1.077 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.378, allocations: 4 kB / 1.077 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.378, allocations: 0 / 1.077 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006163/0.3787, allocations: 466.2 kB / 1.077 GB, free: 1.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3787, allocations: 4 kB / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.176e-05/0.3787, allocations: 0 / 1.077 GB, free: 1.246 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3787, allocations: 4 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.3787, allocations: 4 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.3787, allocations: 11.92 kB / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3787, allocations: 0 / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002446/0.379, allocations: 233.8 kB / 1.077 GB, free: 0.9805 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-05/0.3791, allocations: 96.84 kB / 1.077 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.3791, allocations: 0 / 1.077 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.3792, allocations: 23.92 kB / 1.077 GB, free: 0.8438 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.308e-05/0.3793, allocations: 23.91 kB / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.3793, allocations: 8 kB / 1.077 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001365/0.3795, allocations: 140.5 kB / 1.078 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.3795, allocations: 0 / 1.078 GB, free: 0.6758 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003168/0.3798, allocations: 44 kB / 1.078 GB, free: 0.6328 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (sca.sampleTrigger,scaDel.sampleTrigger,booPul.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sca.active,sca.tActivateLast,scaDel.active,scaDel.tActivateLast,booPul.pulseStart,plotConfiguration.active,plotConfiguration.tActivateLast) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0004861/0.3803, allocations: 175 kB / 1.078 GB, free: 488 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002719/0.3806, allocations: 120.5 kB / 1.078 GB, free: 372 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3806, allocations: 0 / 1.078 GB, free: 372 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.3807, allocations: 47.92 kB / 1.078 GB, free: 324 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000486/0.3812, allocations: 60.03 kB / 1.078 GB, free: 264 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006788/0.3819, allocations: 352.2 kB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.3822, allocations: 0.7203 MB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.425e-05/0.3823, allocations: 29.53 kB / 1.079 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.924e-05/0.3824, allocations: 23.42 kB / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of SimCode: time 2.7e-07/0.3824, allocations: 0 / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of Templates: time 0.007261/0.3897, allocations: 3.548 MB / 1.083 GB, free: 11.57 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput.makefile (rm -f Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput.pipe >> ../files/Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput.sim & ./Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Plotters_Validation_PlotterActivationLocalInput.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Plotters.Validation.PlotterActivationLocalInput.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches