Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 119.1 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.001719/0.001719, allocations: 192.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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.16 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.488/2.488, allocations: 437.1 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 64.47 kB / 0.8707 GB, free: 1.48 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3051, allocations: 151.6 MB / 1.019 GB, free: 9.895 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005288/0.3104, allocations: 4.14 MB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002171/0.3126, allocations: 1.317 MB / 1.024 GB, free: 4.402 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002997/0.3129, allocations: 23.88 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0003093/0.3132, allocations: 126.7 kB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003359/0.3136, allocations: 186.4 kB / 1.024 GB, free: 4.07 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007895/0.3144, allocations: 413.8 kB / 1.025 GB, free: 3.672 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0008495/0.3153, allocations: 0.9554 MB / 1.026 GB, free: 2.715 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005978/0.3159, allocations: 470.1 kB / 1.026 GB, free: 2.234 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003488/0.3162, allocations: 334.7 kB / 1.027 GB, free: 1.906 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003234/0.3166, allocations: 330.4 kB / 1.027 GB, free: 1.582 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001107/0.3167, allocations: 96 kB / 1.027 GB, free: 1.488 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.883e-05/0.3168, allocations: 92 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001458/0.3169, allocations: 179.4 kB / 1.027 GB, free: 1.223 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002949/0.3172, allocations: 386.1 kB / 1.028 GB, free: 0.8438 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0008636/0.3181, allocations: 1.067 MB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3181, allocations: 0 / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.634e-06/0.3181, allocations: 0 / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.3181, allocations: 4 kB / 1.029 GB, free: 15.77 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001727/0.3199, allocations: 1.065 MB / 1.03 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.3199, allocations: 12.88 kB / 1.03 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.3201, allocations: 87.91 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008755/0.3209, allocations: 0.5651 MB / 1.03 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/0.321, allocations: 45.69 kB / 1.03 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.449e-05/0.3211, allocations: 56.38 kB / 1.03 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.3221, allocations: 0.6117 MB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.3221, allocations: 4 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.001e-05/0.3222, allocations: 24 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.3222, allocations: 16 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009207/0.3232, allocations: 457 kB / 1.031 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002703/0.3259, allocations: 1.997 MB / 1.033 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008711/0.3268, allocations: 445.9 kB / 1.034 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004332/0.3272, allocations: 234.1 kB / 1.034 GB, free: 9.977 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.429e-05/0.3273, allocations: 16.36 kB / 1.034 GB, free: 9.961 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004965/0.3278, allocations: 261.3 kB / 1.034 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=49): time 1.923e-06/0.3278, allocations: 0 / 1.034 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of matching and sorting (n=49): time 0.00123/0.329, allocations: 0.585 MB / 1.035 GB, free: 9.105 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.3291, allocations: 55.84 kB / 1.035 GB, free: 9.039 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004695/0.3295, allocations: 445.9 kB / 1.035 GB, free: 8.594 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.644e-05/0.3296, allocations: 41.7 kB / 1.035 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/0.3298, allocations: 324.3 kB / 1.036 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.3299, allocations: 161.7 kB / 1.036 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.3301, allocations: 98.14 kB / 1.036 GB, free: 7.965 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.3303, allocations: 362.8 kB / 1.036 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003644/0.3306, allocations: 165 kB / 1.036 GB, free: 7.441 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004176/0.331, allocations: 249.8 kB / 1.037 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007773/0.3318, allocations: 452 kB / 1.037 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3318, allocations: 0 / 1.037 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009841/0.3328, allocations: 0.5624 MB / 1.038 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.35e-05/0.3329, allocations: 37.64 kB / 1.038 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3329, allocations: 4 kB / 1.038 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.3329, allocations: 4.25 kB / 1.038 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00051/0.3334, allocations: 115.8 kB / 1.038 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.3335, allocations: 4 kB / 1.038 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000307/0.3338, allocations: 59.5 kB / 1.038 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.3338, allocations: 16 kB / 1.038 GB, free: 5.879 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0002342/0.3341, allocations: 210.4 kB / 1.038 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.531e-05/0.3341, allocations: 59.28 kB / 1.038 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/0.3343, allocations: 69.58 kB / 1.038 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.3343, allocations: 8 kB / 1.038 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.3343, allocations: 4 kB / 1.038 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.3343, allocations: 3.984 kB / 1.038 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00164/0.3359, allocations: 1.178 MB / 1.039 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.336, allocations: 0 / 1.039 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004725/0.3364, allocations: 95.89 kB / 1.04 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3364, allocations: 4 kB / 1.04 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.3365, allocations: 11.98 kB / 1.04 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.3365, allocations: 4 kB / 1.04 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3365, allocations: 3.938 kB / 1.04 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001284/0.3378, allocations: 0.7612 MB / 1.04 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.338, allocations: 172.3 kB / 1.04 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.981e-05/0.3381, allocations: 8 kB / 1.04 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/0.3383, allocations: 27.97 kB / 1.04 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.878e-05/0.3384, allocations: 36.39 kB / 1.041 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.689e-05/0.3385, allocations: 8 kB / 1.041 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000319/0.3388, allocations: 314.9 kB / 1.041 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3388, allocations: 0 / 1.041 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004079/0.3392, allocations: 147.4 kB / 1.041 GB, free: 2.68 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001279/0.3394, allocations: 119.1 kB / 1.041 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0008826/0.3402, allocations: 489.5 kB / 1.042 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3403, allocations: 0 / 1.042 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0004083/0.3407, allocations: 214.4 kB / 1.042 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007187/0.3414, allocations: 161.3 kB / 1.042 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.3438, allocations: 1.33 MB / 1.043 GB, free: 348 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004505/0.3443, allocations: 0.886 MB / 1.044 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0002338/0.3445, allocations: 64.52 kB / 1.044 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.3446, allocations: 43.42 kB / 1.044 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3446, allocations: 0 / 1.044 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of Templates: time 0.01071/0.3553, allocations: 5.92 MB / 1.05 GB, free: 9.492 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches