Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008918/0.0008921, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005992/0.005992, allocations: 169.4 kB / 16.26 MB, free: 6.652 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.51/1.51, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.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.489/2.489, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004068/0.0004068, allocations: 12 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9085/0.9089, allocations: 142.4 MB / 0.9551 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale): time 0.002023/0.911, allocations: 1.713 MB / 0.9567 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001948/0.913, allocations: 1.58 MB / 0.9583 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002065/0.9132, allocations: 7.156 kB / 0.9583 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.9134, allocations: 60.03 kB / 0.9583 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.9136, allocations: 54.17 kB / 0.9584 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007109/0.9143, allocations: 293.4 kB / 0.9587 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005562/0.9149, allocations: 0.6171 MB / 0.9593 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004745/0.9153, allocations: 310.9 kB / 0.9596 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.9155, allocations: 171.2 kB / 0.9597 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.9158, allocations: 210.6 kB / 0.9599 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.487e-05/0.9158, allocations: 19.25 kB / 0.96 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.9159, allocations: 30.11 kB / 0.96 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.61e-05/0.916, allocations: 85.36 kB / 0.9601 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.9162, allocations: 240.4 kB / 0.9603 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005905/0.9168, allocations: 0.7389 MB / 0.961 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.9168, allocations: 3.938 kB / 0.961 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.006e-06/0.9168, allocations: 1.375 kB / 0.961 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.498e-06/0.9169, allocations: 0 / 0.961 GB, free: 2.98 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001478/0.9183, allocations: 0.8096 MB / 0.9618 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.9184, allocations: 8.281 kB / 0.9618 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.9185, allocations: 71.47 kB / 0.9619 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004879/0.919, allocations: 401.6 kB / 0.9623 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.862e-05/0.9191, allocations: 44.14 kB / 0.9623 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.9192, allocations: 62.56 kB / 0.9624 GB, free: 1.84 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008868/0.9201, allocations: 0.4992 MB / 0.9629 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.9201, allocations: 192 / 0.9629 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.447e-05/0.9202, allocations: 29.62 kB / 0.9629 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.9202, allocations: 12.28 kB / 0.9629 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007348/0.921, allocations: 356.6 kB / 0.9632 GB, free: 1.359 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.9233, allocations: 1.578 MB / 0.9648 GB, free: 120 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.9244, allocations: 0.8896 MB / 0.9656 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004098/0.9248, allocations: 238.5 kB / 0.9659 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.295e-05/0.9248, allocations: 9.031 kB / 0.9659 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005324/0.9254, allocations: 257.8 kB / 0.9661 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=47): time 2.835e-06/0.9254, allocations: 0 / 0.9661 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of matching and sorting (n=47): time 0.001226/0.9266, allocations: 0.5484 MB / 0.9667 GB, free: 14.79 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.9267, allocations: 113.6 kB / 0.9668 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005066/0.9272, allocations: 392 kB / 0.9671 GB, free: 14.41 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.419e-05/0.9273, allocations: 38.55 kB / 0.9672 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.9275, allocations: 253.3 kB / 0.9674 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.9276, allocations: 159.4 kB / 0.9676 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.805e-05/0.9277, allocations: 51.22 kB / 0.9676 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001615/0.9279, allocations: 353.4 kB / 0.968 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004428/0.9284, allocations: 194.1 kB / 0.9682 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005217/0.9289, allocations: 289.2 kB / 0.9684 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008488/0.9297, allocations: 453.1 kB / 0.9689 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.9298, allocations: 0.75 kB / 0.9689 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001196/0.931, allocations: 0.5811 MB / 0.9694 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001336/0.9311, allocations: 180.6 kB / 0.9696 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.9311, allocations: 2.094 kB / 0.9696 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.9311, allocations: 4.625 kB / 0.9696 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004111/0.9316, allocations: 103.5 kB / 0.9697 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.9316, allocations: 4.031 kB / 0.9697 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004756/0.9321, allocations: 104.4 kB / 0.9698 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.578e-05/0.9321, allocations: 19.28 kB / 0.9698 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/0.9321, allocations: 5.438 kB / 0.9698 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008194/0.933, allocations: 475.4 kB / 0.9703 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.933, allocations: 6.766 kB / 0.9703 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/0.933, allocations: 7.594 kB / 0.9703 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/0.9333, allocations: 90.31 kB / 0.9704 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.9333, allocations: 5.062 kB / 0.9704 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.9337, allocations: 86.14 kB / 0.9705 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.9338, allocations: 23.36 kB / 0.9705 GB, free: 12.13 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y,pidNoSca.con1.y,pidSca.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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.0003012/0.9341, allocations: 255.6 kB / 0.9707 GB, free: 11.9 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.655e-05/0.9341, allocations: 40.44 kB / 0.9708 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000874/0.935, allocations: 459.4 kB / 0.9712 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.935, allocations: 8.406 kB / 0.9712 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.9351, allocations: 0 / 0.9712 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.9351, allocations: 9.047 kB / 0.9712 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.9369, allocations: 1.159 MB / 0.9724 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.9369, allocations: 1.031 kB / 0.9724 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003843/0.9373, allocations: 85.83 kB / 0.9724 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/0.9373, allocations: 7.094 kB / 0.9725 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/0.9374, allocations: 13 kB / 0.9725 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.9374, allocations: 3.875 kB / 0.9725 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.9374, allocations: 6 kB / 0.9725 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.9388, allocations: 0.7449 MB / 0.9732 GB, free: 10.25 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.9389, allocations: 126.3 kB / 0.9733 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.243e-05/0.939, allocations: 13.31 kB / 0.9733 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.9392, allocations: 33.05 kB / 0.9734 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.731e-05/0.9393, allocations: 34.05 kB / 0.9734 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.505e-05/0.9394, allocations: 15.91 kB / 0.9734 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004007/0.9398, allocations: 275.6 kB / 0.9737 GB, free: 9.898 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9398, allocations: 0 / 0.9737 GB, free: 9.898 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0008472/0.9406, allocations: 196.1 kB / 0.9739 GB, free: 9.84 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 4 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * 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.0003082/0.9409, allocations: 129.5 kB / 0.974 GB, free: 9.73 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001702/0.9427, allocations: 0.8001 MB / 0.9748 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.9427, allocations: 1.219 kB / 0.9748 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003602/0.943, allocations: 200 kB / 0.975 GB, free: 9.219 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007038/0.9438, allocations: 94.38 kB / 0.975 GB, free: 9.168 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/0.9457, allocations: 1.171 MB / 0.9762 GB, free: 8.301 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.9462, allocations: 0.8491 MB / 0.977 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002453/0.9465, allocations: 50.88 kB / 0.9771 GB, free: 7.512 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.9466, allocations: 37.5 kB / 0.9771 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of SimCode: time 6.41e-07/0.9466, allocations: 0 / 0.9771 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of Templates: time 0.0116/0.9582, allocations: 5.659 MB / 0.9826 GB, free: 2.43 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches