Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0007347/0.0007347, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009121/0.0009121, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 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.9265/0.9265, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.784/1.784, allocations: 377.8 MB / 0.6221 GB, free: 8.668 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 0.9809 GB, free: 2.617 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.956e-05/2.088e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003847/0.003868, allocations: 3.773 MB / 0.9846 GB, free: 14.82 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.002243/0.006112, allocations: 1.324 MB / 0.9859 GB, free: 13.49 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003568/0.006468, allocations: 31.81 kB / 0.9859 GB, free: 13.46 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.006748, allocations: 130.7 kB / 0.9861 GB, free: 13.33 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002827/0.007031, allocations: 194.2 kB / 0.9862 GB, free: 13.14 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006675/0.007698, allocations: 421.3 kB / 0.9866 GB, free: 12.73 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0008058/0.008504, allocations: 0.9785 MB / 0.9876 GB, free: 11.75 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004016/0.008905, allocations: 282.6 kB / 0.9879 GB, free: 11.46 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006125/0.009518, allocations: 0.499 MB / 0.9884 GB, free: 10.96 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.00972, allocations: 235.2 kB / 0.9886 GB, free: 10.73 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 6.935e-05/0.009789, allocations: 95.94 kB / 0.9887 GB, free: 10.63 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.00985, allocations: 92 kB / 0.9888 GB, free: 10.54 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 9.094e-05/0.009941, allocations: 179.3 kB / 0.9889 GB, free: 10.37 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.0101, allocations: 247.4 kB / 0.9892 GB, free: 10.12 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0006927/0.0108, allocations: 1.09 MB / 0.9902 GB, free: 9.031 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.0108, allocations: 0 / 0.9902 GB, free: 9.031 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.703e-06/0.0108, allocations: 0 / 0.9902 GB, free: 9.031 MB / 0.948 GB Notification: Performance of Transformations before backend: time 8.807e-06/0.01081, allocations: 0 / 0.9902 GB, free: 9.031 MB / 0.948 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.00115/0.01196, allocations: 1.076 MB / 0.9913 GB, free: 7.914 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.012, allocations: 12.03 kB / 0.9913 GB, free: 7.902 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.317e-05/0.01207, allocations: 94.7 kB / 0.9914 GB, free: 7.801 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.505e-05/0.01217, allocations: 100.4 kB / 0.9915 GB, free: 7.703 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006126/0.01278, allocations: 0.4953 MB / 0.992 GB, free: 7.176 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.0128, allocations: 41.69 kB / 0.992 GB, free: 7.137 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.101e-05/0.01286, allocations: 64.33 kB / 0.9921 GB, free: 7.074 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006744/0.01354, allocations: 0.666 MB / 0.9927 GB, free: 6.371 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.01355, allocations: 192 / 0.9927 GB, free: 6.371 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/0.01359, allocations: 28.12 kB / 0.9927 GB, free: 6.344 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/0.0136, allocations: 15.94 kB / 0.9928 GB, free: 6.328 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005846/0.01419, allocations: 457 kB / 0.9932 GB, free: 5.879 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.01596, allocations: 1.783 MB / 0.9949 GB, free: 4.039 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006238/0.01658, allocations: 417.7 kB / 0.9953 GB, free: 3.617 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002713/0.01685, allocations: 222.8 kB / 0.9955 GB, free: 3.398 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.01688, allocations: 4.5 kB / 0.9955 GB, free: 3.395 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/0.01725, allocations: 258.2 kB / 0.9958 GB, free: 3.133 MB / 0.948 GB Notification: Performance of pre-optimization done (n=49): time 2.044e-06/0.01725, allocations: 0 / 0.9958 GB, free: 3.133 MB / 0.948 GB Notification: Performance of matching and sorting (n=49): time 0.0007779/0.01803, allocations: 0.5949 MB / 0.9964 GB, free: 2.535 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.01807, allocations: 55.91 kB / 0.9964 GB, free: 2.469 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.01838, allocations: 449.9 kB / 0.9969 GB, free: 2.02 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.01841, allocations: 37.7 kB / 0.9969 GB, free: 1.977 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.01857, allocations: 332.9 kB / 0.9972 GB, free: 1.645 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.745e-05/0.01866, allocations: 174.5 kB / 0.9974 GB, free: 1.473 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.01875, allocations: 90.34 kB / 0.9975 GB, free: 1.379 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.01887, allocations: 366.8 kB / 0.9978 GB, free: 1.012 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/0.01912, allocations: 190.9 kB / 0.998 GB, free: 0.8164 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.01938, allocations: 284.3 kB / 0.9983 GB, free: 0.5078 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000499/0.01988, allocations: 447.3 kB / 0.9987 GB, free: 40 kB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.01989, allocations: 0 / 0.9987 GB, free: 40 kB / 0.948 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000676/0.02056, allocations: 0.598 MB / 0.9993 GB, free: 15.42 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.0206, allocations: 29.7 kB / 0.9993 GB, free: 15.38 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.02061, allocations: 4 kB / 0.9993 GB, free: 15.38 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.02062, allocations: 7.938 kB / 0.9993 GB, free: 15.37 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.02089, allocations: 116.1 kB / 0.9994 GB, free: 15.26 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.0209, allocations: 11.94 kB / 0.9994 GB, free: 15.25 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.02107, allocations: 55.64 kB / 0.9995 GB, free: 15.19 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.02109, allocations: 20 kB / 0.9995 GB, free: 15.17 MB / 0.9636 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 (conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$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.0001818/0.02127, allocations: 209.8 kB / 0.9997 GB, free: 14.96 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.587e-05/0.02132, allocations: 63.56 kB / 0.9998 GB, free: 14.89 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.064e-05/0.0214, allocations: 61.59 kB / 0.9998 GB, free: 14.83 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.0214, allocations: 11.94 kB / 0.9998 GB, free: 14.82 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.02141, allocations: 3.938 kB / 0.9998 GB, free: 14.82 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.02142, allocations: 3.984 kB / 0.9998 GB, free: 14.81 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.02252, allocations: 1.074 MB / 1.001 GB, free: 13.69 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.02253, allocations: 3.938 kB / 1.001 GB, free: 13.69 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002405/0.02277, allocations: 95.88 kB / 1.001 GB, free: 13.59 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.02277, allocations: 0 / 1.001 GB, free: 13.59 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.02279, allocations: 20 kB / 1.001 GB, free: 13.57 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.02279, allocations: 3.938 kB / 1.001 GB, free: 13.57 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.0228, allocations: 7.938 kB / 1.001 GB, free: 13.56 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000869/0.02367, allocations: 0.7514 MB / 1.002 GB, free: 12.79 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.02379, allocations: 103.5 kB / 1.002 GB, free: 12.69 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.02383, allocations: 15.98 kB / 1.002 GB, free: 12.68 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.02398, allocations: 27.97 kB / 1.002 GB, free: 12.65 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.756e-05/0.02405, allocations: 40.42 kB / 1.002 GB, free: 12.61 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.02407, allocations: 8 kB / 1.002 GB, free: 12.6 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0003063/0.02438, allocations: 306.9 kB / 1.002 GB, free: 12.3 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7e-08/0.02438, allocations: 0 / 1.002 GB, free: 12.3 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0003073/0.02468, allocations: 147.7 kB / 1.002 GB, free: 12.16 MB / 0.9636 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 0.001015/0.0257, allocations: 1.323 MB / 1.004 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0005948/0.02629, allocations: 491.7 kB / 1.004 GB, free: 10.31 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.0263, allocations: 8 kB / 1.004 GB, free: 10.3 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0002358/0.02653, allocations: 198.8 kB / 1.004 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004943/0.02703, allocations: 153.3 kB / 1.004 GB, free: 9.969 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004992/0.03202, allocations: 4.837 MB / 1.009 GB, free: 4.961 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.03224, allocations: 288.7 kB / 1.009 GB, free: 4.648 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 0.0002325/0.03248, allocations: 64.58 kB / 1.01 GB, free: 4.586 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.03269, allocations: 220.4 kB / 1.01 GB, free: 4.371 MB / 0.9636 GB Notification: Performance of SimCode: time 1.092e-06/0.03269, allocations: 0 / 1.01 GB, free: 4.371 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02974/0.06243, allocations: 12.53 MB / 1.022 GB, free: 8.145 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.918/6.98, allocations: 10.73 kB / 1.022 GB, free: 8.137 MB / 0.9792 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --stepSize=0.119713 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.339058224111795]