Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 73.88 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009893/0.0009893, allocations: 169 kB / 24.05 MB, free: 460 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9809/0.9809, allocations: 177.2 MB / 204.5 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.046/2.046, allocations: 429.5 MB / 0.6743 GB, free: 3.902 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 0.8794 GB, free: 6.062 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.881e-05/2.047e-05, allocations: 2.312 kB / 0.8794 GB, free: 6.059 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005797/0.005818, allocations: 3.946 MB / 0.8832 GB, free: 2.117 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.002884/0.008702, allocations: 1.358 MB / 0.8845 GB, free: 0.7578 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005046/0.009207, allocations: 27.81 kB / 0.8846 GB, free: 0.7305 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.009569, allocations: 126.7 kB / 0.8847 GB, free: 0.6055 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0003844/0.009953, allocations: 197.6 kB / 0.8849 GB, free: 424 kB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006043/0.01056, allocations: 411.4 kB / 0.8853 GB, free: 12 kB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0007379/0.0113, allocations: 0.9785 MB / 0.8862 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003612/0.01166, allocations: 290.6 kB / 0.8865 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004431/0.0121, allocations: 0.5028 MB / 0.887 GB, free: 14.22 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.01233, allocations: 235.2 kB / 0.8872 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 7.952e-05/0.01241, allocations: 88 kB / 0.8873 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.939e-05/0.01248, allocations: 88 kB / 0.8874 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 9.578e-05/0.01257, allocations: 175.4 kB / 0.8875 GB, free: 13.65 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.01275, allocations: 247.4 kB / 0.8878 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0004528/0.0132, allocations: 0.5759 MB / 0.8883 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.0132, allocations: 0 / 0.8883 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of FrontEnd: time 7.91e-07/0.0132, allocations: 0 / 0.8883 GB, free: 12.83 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 7.454e-06/0.01321, allocations: 0 / 0.8883 GB, free: 12.83 MB / 0.8542 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.00106/0.01427, allocations: 1.167 MB / 0.8895 GB, free: 11.61 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.0143, allocations: 8.031 kB / 0.8895 GB, free: 11.61 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.01443, allocations: 132.4 kB / 0.8896 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005091/0.01494, allocations: 0.5378 MB / 0.8901 GB, free: 10.9 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.01496, allocations: 37.69 kB / 0.8902 GB, free: 10.87 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.08e-05/0.01503, allocations: 68.36 kB / 0.8902 GB, free: 10.8 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004603/0.01549, allocations: 495 kB / 0.8907 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.0155, allocations: 4.141 kB / 0.8907 GB, free: 10.27 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.01554, allocations: 28.38 kB / 0.8907 GB, free: 10.24 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.01555, allocations: 15.94 kB / 0.8908 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002355/0.01578, allocations: 190.2 kB / 0.8909 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.01733, allocations: 1.718 MB / 0.8926 GB, free: 8.273 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002978/0.01762, allocations: 251.1 kB / 0.8929 GB, free: 8.012 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.01774, allocations: 105.1 kB / 0.893 GB, free: 7.906 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.01777, allocations: 12.44 kB / 0.893 GB, free: 7.895 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001805/0.01795, allocations: 167.9 kB / 0.8931 GB, free: 7.719 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=49): time 1.704e-06/0.01795, allocations: 0 / 0.8931 GB, free: 7.719 MB / 0.8542 GB Notification: Performance of matching and sorting (n=49): time 0.0004068/0.01836, allocations: 340.8 kB / 0.8935 GB, free: 7.379 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.01839, allocations: 63.83 kB / 0.8935 GB, free: 7.305 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002649/0.01865, allocations: 446.9 kB / 0.8939 GB, free: 6.852 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.01868, allocations: 37.7 kB / 0.894 GB, free: 6.809 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.01886, allocations: 379.5 kB / 0.8943 GB, free: 6.434 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 8.936e-05/0.01895, allocations: 174.5 kB / 0.8945 GB, free: 6.262 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.871e-05/0.01905, allocations: 95.95 kB / 0.8946 GB, free: 6.16 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.01919, allocations: 0.539 MB / 0.8951 GB, free: 5.609 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.175e-05/0.01929, allocations: 82.95 kB / 0.8952 GB, free: 5.523 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.01942, allocations: 197.8 kB / 0.8954 GB, free: 5.285 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002333/0.01966, allocations: 276.6 kB / 0.8957 GB, free: 4.973 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.01966, allocations: 4 kB / 0.8957 GB, free: 4.969 MB / 0.8542 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0003672/0.02003, allocations: 416.4 kB / 0.8961 GB, free: 4.539 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.02006, allocations: 33.7 kB / 0.8961 GB, free: 4.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.02006, allocations: 4 kB / 0.8961 GB, free: 4.496 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.02007, allocations: 4 kB / 0.8961 GB, free: 4.492 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.02033, allocations: 111.8 kB / 0.8962 GB, free: 4.383 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.02033, allocations: 8 kB / 0.8962 GB, free: 4.375 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/0.02046, allocations: 59.84 kB / 0.8963 GB, free: 4.316 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.02048, allocations: 12 kB / 0.8963 GB, free: 4.305 MB / 0.8542 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 (conNoRes.conPID.I.trigger_internal,conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$whenCondition1,$whenCondition2) * 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.0001368/0.02062, allocations: 184.5 kB / 0.8965 GB, free: 4.113 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/0.02068, allocations: 71.62 kB / 0.8965 GB, free: 4.043 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.776e-05/0.02074, allocations: 65.44 kB / 0.8966 GB, free: 3.98 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.02075, allocations: 7.984 kB / 0.8966 GB, free: 3.973 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.02075, allocations: 4 kB / 0.8966 GB, free: 3.969 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.02076, allocations: 11.92 kB / 0.8966 GB, free: 3.957 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006932/0.02145, allocations: 0.7733 MB / 0.8974 GB, free: 3.156 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.02145, allocations: 0 / 0.8974 GB, free: 3.156 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.02169, allocations: 87.89 kB / 0.8974 GB, free: 3.07 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.02169, allocations: 0 / 0.8974 GB, free: 3.07 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.02171, allocations: 12 kB / 0.8975 GB, free: 3.059 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.02171, allocations: 0 / 0.8975 GB, free: 3.059 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.02171, allocations: 3.938 kB / 0.8975 GB, free: 3.055 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000433/0.02214, allocations: 0.5213 MB / 0.898 GB, free: 2.512 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.845e-05/0.02224, allocations: 99.45 kB / 0.8981 GB, free: 2.414 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.344e-05/0.02228, allocations: 12 kB / 0.8981 GB, free: 2.402 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.02239, allocations: 15.98 kB / 0.8981 GB, free: 2.387 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.079e-05/0.02244, allocations: 40.38 kB / 0.8981 GB, free: 2.348 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.02246, allocations: 11.98 kB / 0.8981 GB, free: 2.336 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001445/0.0226, allocations: 275 kB / 0.8984 GB, free: 2.07 MB / 0.8542 GB Notification: Performance of sort global known variables: time 2.31e-07/0.0226, allocations: 0 / 0.8984 GB, free: 2.07 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002619/0.02286, allocations: 139.7 kB / 0.8985 GB, free: 1.934 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (conNoRes.conPID.I.y,plaNoRes.cap1.T,plaNoRes.cap.T,conWitRes.conPID.I.y,plaWitRes.cap1.T,plaWitRes.cap.T) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,TSet.count,TSet.T_start,conNoRes.trigger.y) * 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 8.174e-05/0.02294, allocations: 115.2 kB / 0.8986 GB, free: 1.812 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003067/0.02325, allocations: 316.2 kB / 0.899 GB, free: 1.48 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.02325, allocations: 0 / 0.899 GB, free: 1.48 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.02338, allocations: 127.4 kB / 0.8991 GB, free: 1.352 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.0238, allocations: 160.2 kB / 0.8992 GB, free: 1.203 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.02523, allocations: 1.165 MB / 0.9004 GB, free: 0 / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.845e-05/0.02532, allocations: 133.9 kB / 0.9005 GB, free: 15.85 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.000159/0.02548, allocations: 60.53 kB / 0.9005 GB, free: 15.79 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.0257, allocations: 190.1 kB / 0.9007 GB, free: 15.6 MB / 0.8698 GB Notification: Performance of SimCode: time 1.052e-06/0.0257, allocations: 0 / 0.9007 GB, free: 15.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.008609/0.03431, allocations: 6.464 MB / 0.907 GB, free: 9.27 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.4488981030881405]