Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_11_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_11_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 108 kB / 15.6 MB, free: 132 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.001287/0.001287, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.261/1.261, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.509/2.509, allocations: 469.8 MB / 0.7424 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 68.69 kB / 0.9086 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.233, allocations: 159.2 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004587/0.2377, allocations: 3.714 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001974/0.2397, allocations: 1.329 MB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002475/0.2399, allocations: 27.81 kB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000263/0.2402, allocations: 130.6 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000433/0.2406, allocations: 178.5 kB / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009696/0.2416, allocations: 0.5607 MB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008619/0.2425, allocations: 0.9604 MB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004536/0.2429, allocations: 349.6 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003467/0.2433, allocations: 354.5 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003333/0.2436, allocations: 362 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.2437, allocations: 76 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.2439, allocations: 80 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.244, allocations: 183.3 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.2443, allocations: 377.7 kB / 1.072 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007124/0.245, allocations: 0.8566 MB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.245, allocations: 3.984 kB / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.51e-07/0.245, allocations: 0 / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.245, allocations: 0 / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001818/0.2469, allocations: 1.179 MB / 1.074 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.2469, allocations: 12.03 kB / 1.075 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.691e-05/0.247, allocations: 90.7 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001312/0.2471, allocations: 95.8 kB / 1.075 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008249/0.248, allocations: 0.5948 MB / 1.075 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.2481, allocations: 100.9 kB / 1.075 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.001e-05/0.2482, allocations: 48.38 kB / 1.075 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000989/0.2492, allocations: 0.6001 MB / 1.076 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2492, allocations: 7.938 kB / 1.076 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.64e-05/0.2492, allocations: 20 kB / 1.076 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.2493, allocations: 12 kB / 1.076 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008992/0.2502, allocations: 427.6 kB / 1.076 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.2527, allocations: 2.118 MB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.2538, allocations: 0.5003 MB / 1.079 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004339/0.2543, allocations: 218.7 kB / 1.079 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.2543, allocations: 8 kB / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005976/0.2549, allocations: 282.1 kB / 1.079 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 1.693e-06/0.2549, allocations: 0 / 1.079 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001344/0.2563, allocations: 0.6099 MB / 1.08 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.2564, allocations: 92.8 kB / 1.08 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006536/0.257, allocations: 0.61 MB / 1.081 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.341e-05/0.2571, allocations: 37.7 kB / 1.081 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/0.2573, allocations: 360.8 kB / 1.081 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.2575, allocations: 153.8 kB / 1.081 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.2576, allocations: 90.25 kB / 1.081 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.2577, allocations: 330 kB / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004237/0.2582, allocations: 183 kB / 1.082 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.2586, allocations: 276.2 kB / 1.082 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008728/0.2595, allocations: 485.8 kB / 1.083 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2595, allocations: 0 / 1.083 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001115/0.2607, allocations: 0.5944 MB / 1.083 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.2607, allocations: 33.69 kB / 1.083 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.2607, allocations: 7.984 kB / 1.083 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.2607, allocations: 4 kB / 1.083 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004379/0.2612, allocations: 111.8 kB / 1.083 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.2612, allocations: 8.25 kB / 1.083 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.2615, allocations: 67.41 kB / 1.083 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/0.2616, allocations: 20 kB / 1.083 GB, free: 9.93 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005122/0.2621, allocations: 305.2 kB / 1.084 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004376/0.2625, allocations: 272.2 kB / 1.084 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007819/0.2633, allocations: 454 kB / 1.084 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.366e-06/0.2633, allocations: 4 kB / 1.084 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001016/0.2644, allocations: 0.5788 MB / 1.085 GB, free: 8.246 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.2644, allocations: 33.7 kB / 1.085 GB, free: 8.207 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-06/0.2644, allocations: 0 / 1.085 GB, free: 8.207 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.432e-06/0.2644, allocations: 8 kB / 1.085 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004209/0.2648, allocations: 103.8 kB / 1.085 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.2649, allocations: 7.938 kB / 1.085 GB, free: 8.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00032/0.2652, allocations: 47.67 kB / 1.085 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.952e-05/0.2652, allocations: 19.94 kB / 1.085 GB, free: 8.023 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001539/0.2654, allocations: 224.1 kB / 1.085 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.145e-05/0.2655, allocations: 75.06 kB / 1.085 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.2656, allocations: 79.22 kB / 1.086 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.2656, allocations: 4 kB / 1.086 GB, free: 7.637 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2656, allocations: 0 / 1.086 GB, free: 7.637 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.2656, allocations: 3.984 kB / 1.086 GB, free: 7.633 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006249/0.2663, allocations: 0.6219 MB / 1.086 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2663, allocations: 0 / 1.086 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004174/0.2667, allocations: 91.88 kB / 1.086 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2667, allocations: 0 / 1.086 GB, free: 6.871 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.2667, allocations: 8 kB / 1.086 GB, free: 6.863 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.2667, allocations: 0 / 1.086 GB, free: 6.863 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2668, allocations: 4 kB / 1.086 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.2681, allocations: 0.7325 MB / 1.087 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.2684, allocations: 192 kB / 1.087 GB, free: 5.902 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.211e-05/0.2684, allocations: 15.98 kB / 1.087 GB, free: 5.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003741/0.2688, allocations: 35.95 kB / 1.087 GB, free: 5.852 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.009e-05/0.2689, allocations: 31.95 kB / 1.087 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.2689, allocations: 19.98 kB / 1.087 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004536/0.2694, allocations: 427.1 kB / 1.088 GB, free: 5.391 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2694, allocations: 0 / 1.088 GB, free: 5.391 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005076/0.2699, allocations: 211.4 kB / 1.088 GB, free: 5.184 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.00167/0.2716, allocations: 1.286 MB / 1.089 GB, free: 3.867 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001552/0.2732, allocations: 0.8129 MB / 1.09 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2732, allocations: 0 / 1.09 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004373/0.2736, allocations: 223.5 kB / 1.09 GB, free: 2.816 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000754/0.2744, allocations: 201.7 kB / 1.09 GB, free: 2.625 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007193/0.2816, allocations: 5.62 MB / 1.096 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004647/0.282, allocations: 0.9141 MB / 1.097 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003254/0.2824, allocations: 97.11 kB / 1.097 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003244/0.2827, allocations: 267.3 kB / 1.097 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.2827, allocations: 0 / 1.097 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.575/3.858, allocations: 13.85 MB / 1.111 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.43/17.29, allocations: 11.06 kB / 1.111 GB, free: 13.84 MB / 0.8731 GB (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches