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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001299/0.001299, allocations: 108 kB / 15.61 MB, free: 152 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.001399/0.001399, allocations: 196 kB / 16.53 MB, free: 6.699 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.511/1.511, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.842/2.842, allocations: 437 MB / 0.7104 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 71.88 kB / 0.8692 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7836/0.7855, allocations: 151.6 MB / 1.017 GB, free: 2.621 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006234/0.7918, allocations: 4.139 MB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00276/0.7946, allocations: 1.317 MB / 1.023 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003569/0.795, allocations: 27.88 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003749/0.7954, allocations: 122.8 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003507/0.7958, allocations: 182.3 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008776/0.7967, allocations: 413.8 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000976/0.7976, allocations: 0.9631 MB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006648/0.7983, allocations: 462.1 kB / 1.025 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003585/0.7987, allocations: 330.7 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003755/0.7991, allocations: 334.4 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.7992, allocations: 92 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.7993, allocations: 88 kB / 1.026 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.7995, allocations: 179.3 kB / 1.026 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003864/0.7999, allocations: 398.1 kB / 1.026 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00099/0.8009, allocations: 1.03 MB / 1.027 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.8009, allocations: 4 kB / 1.027 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8009, allocations: 0 / 1.027 GB, free: 8.539 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.159e-05/0.8009, allocations: 0 / 1.027 GB, free: 8.539 MB / 0.7794 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.001929/0.8029, allocations: 1.077 MB / 1.028 GB, free: 7.406 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.8029, allocations: 11.98 kB / 1.028 GB, free: 7.395 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.8031, allocations: 83.91 kB / 1.028 GB, free: 7.312 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008605/0.804, allocations: 0.5573 MB / 1.029 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.275e-05/0.804, allocations: 49.62 kB / 1.029 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.8041, allocations: 56.38 kB / 1.029 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.8052, allocations: 0.604 MB / 1.029 GB, free: 5.98 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.8053, allocations: 4 kB / 1.029 GB, free: 5.977 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.515e-05/0.8053, allocations: 24 kB / 1.029 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.07e-05/0.8054, allocations: 16 kB / 1.029 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.8064, allocations: 457 kB / 1.03 GB, free: 5.488 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003044/0.8094, allocations: 2.02 MB / 1.032 GB, free: 3.395 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009445/0.8104, allocations: 442.1 kB / 1.032 GB, free: 2.957 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004603/0.8109, allocations: 238 kB / 1.033 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.231e-05/0.8109, allocations: 8.438 kB / 1.033 GB, free: 2.715 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005895/0.8115, allocations: 261.2 kB / 1.033 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 2.925e-06/0.8115, allocations: 0 / 1.033 GB, free: 2.445 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.00135/0.8129, allocations: 0.5883 MB / 1.033 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.275e-05/0.813, allocations: 55.84 kB / 1.033 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000535/0.8135, allocations: 446 kB / 1.034 GB, free: 1.34 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.8136, allocations: 41.64 kB / 1.034 GB, free: 1.293 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002736/0.8138, allocations: 321 kB / 1.034 GB, free: 0.9766 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.814, allocations: 169.6 kB / 1.034 GB, free: 0.8086 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001544/0.8142, allocations: 94.16 kB / 1.034 GB, free: 0.7109 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002136/0.8144, allocations: 362.8 kB / 1.035 GB, free: 356 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004028/0.8148, allocations: 169 kB / 1.035 GB, free: 188 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004669/0.8153, allocations: 253.8 kB / 1.035 GB, free: 15.91 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008551/0.8161, allocations: 452 kB / 1.036 GB, free: 15.44 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.8161, allocations: 0 / 1.036 GB, free: 15.44 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001105/0.8172, allocations: 0.5585 MB / 1.036 GB, free: 14.87 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.513e-05/0.8173, allocations: 37.64 kB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.8173, allocations: 0 / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.8174, allocations: 8 kB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004948/0.8179, allocations: 112.1 kB / 1.036 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.8179, allocations: 11.98 kB / 1.036 GB, free: 14.7 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003262/0.8182, allocations: 59.52 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-05/0.8183, allocations: 16 kB / 1.036 GB, free: 14.62 MB / 0.795 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.0002647/0.8185, allocations: 210.8 kB / 1.037 GB, free: 14.41 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.765e-05/0.8186, allocations: 59.28 kB / 1.037 GB, free: 14.35 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.8188, allocations: 61.59 kB / 1.037 GB, free: 14.29 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.8188, allocations: 12 kB / 1.037 GB, free: 14.28 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.8188, allocations: 0 / 1.037 GB, free: 14.28 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.086e-06/0.8188, allocations: 3.984 kB / 1.037 GB, free: 14.27 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00189/0.8207, allocations: 1.174 MB / 1.038 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.8207, allocations: 0 / 1.038 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000481/0.8212, allocations: 95.88 kB / 1.038 GB, free: 12.95 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.885e-06/0.8212, allocations: 8 kB / 1.038 GB, free: 12.94 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.506e-05/0.8213, allocations: 11.94 kB / 1.038 GB, free: 12.93 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.8213, allocations: 4 kB / 1.038 GB, free: 12.92 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.8213, allocations: 0 / 1.038 GB, free: 12.92 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.8227, allocations: 0.7601 MB / 1.039 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002017/0.8229, allocations: 172.3 kB / 1.039 GB, free: 11.96 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.324e-05/0.823, allocations: 11.98 kB / 1.039 GB, free: 11.95 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.8233, allocations: 23.98 kB / 1.039 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.8234, allocations: 40.33 kB / 1.039 GB, free: 11.88 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.8234, allocations: 11.98 kB / 1.039 GB, free: 11.87 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003794/0.8238, allocations: 306.9 kB / 1.039 GB, free: 11.57 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.8238, allocations: 0 / 1.039 GB, free: 11.57 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004582/0.8243, allocations: 151.4 kB / 1.039 GB, free: 11.43 MB / 0.795 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.0001642/0.8244, allocations: 115.2 kB / 1.04 GB, free: 11.3 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001141/0.8256, allocations: 0.4897 MB / 1.04 GB, free: 10.8 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.8256, allocations: 7.938 kB / 1.04 GB, free: 10.79 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004377/0.8261, allocations: 214.4 kB / 1.04 GB, free: 10.59 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007947/0.8269, allocations: 161.4 kB / 1.04 GB, free: 10.43 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.8297, allocations: 1.344 MB / 1.042 GB, free: 9.062 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000577/0.8303, allocations: 0.8899 MB / 1.043 GB, free: 8.148 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002683/0.8306, allocations: 68.58 kB / 1.043 GB, free: 8.078 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.8307, allocations: 43.42 kB / 1.043 GB, free: 8.039 MB / 0.795 GB Notification: Performance of SimCode: time 1.123e-06/0.8307, allocations: 0 / 1.043 GB, free: 8.039 MB / 0.795 GB Notification: Performance of Templates: time 0.01254/0.8432, allocations: 5.921 MB / 1.048 GB, free: 2.195 MB / 0.795 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=400 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches