Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_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.0008872/0.0008873, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005213/0.005213, allocations: 169.4 kB / 16.26 MB, free: 6.66 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.213/1.213, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.394/2.394, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.0002858, allocations: 6.906 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2281, allocations: 159.6 MB / 1.059 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.003586/0.2317, allocations: 3.328 MB / 1.062 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002238/0.234, allocations: 1.282 MB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004617/0.2345, allocations: 23.88 kB / 1.063 GB, free: 240 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002497/0.2347, allocations: 91.11 kB / 1.063 GB, free: 148 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004404/0.2352, allocations: 139 kB / 1.064 GB, free: 8 kB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009918/0.2362, allocations: 0.532 MB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007154/0.2369, allocations: 0.8938 MB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00042/0.2373, allocations: 337.6 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002745/0.2376, allocations: 278.3 kB / 1.065 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002514/0.2379, allocations: 274.1 kB / 1.066 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.936e-05/0.2379, allocations: 20 kB / 1.066 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.154e-05/0.238, allocations: 31.94 kB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.549e-05/0.2381, allocations: 107.4 kB / 1.066 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.2383, allocations: 331.4 kB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005344/0.2389, allocations: 0.7784 MB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2389, allocations: 3.984 kB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2389, allocations: 4 kB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.273e-06/0.2389, allocations: 0 / 1.067 GB, free: 12.42 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.001563/0.2405, allocations: 1.059 MB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.2405, allocations: 11.97 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.569e-05/0.2406, allocations: 90.7 kB / 1.068 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.2407, allocations: 99.75 kB / 1.068 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000767/0.2415, allocations: 0.587 MB / 1.069 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.481e-05/0.2416, allocations: 104.9 kB / 1.069 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.305e-05/0.2417, allocations: 60.38 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009731/0.2427, allocations: 0.6079 MB / 1.07 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.2427, allocations: 0 / 1.07 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.815e-05/0.2427, allocations: 24 kB / 1.07 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.2427, allocations: 15.98 kB / 1.07 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009053/0.2437, allocations: 443.7 kB / 1.07 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.246, allocations: 2.133 MB / 1.072 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/0.2472, allocations: 0.5224 MB / 1.073 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004438/0.2476, allocations: 226.2 kB / 1.073 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.2476, allocations: 4 kB / 1.073 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006129/0.2483, allocations: 297.9 kB / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=45): time 1.743e-06/0.2483, allocations: 0 / 1.073 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of matching and sorting (n=45): time 0.001335/0.2496, allocations: 0.6386 MB / 1.074 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.2497, allocations: 92.78 kB / 1.074 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006025/0.2503, allocations: 0.61 MB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.898e-05/0.2503, allocations: 37.64 kB / 1.074 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/0.2506, allocations: 365.9 kB / 1.075 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.2507, allocations: 153.8 kB / 1.075 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-05/0.2507, allocations: 53.69 kB / 1.075 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.673e-05/0.2508, allocations: 326 kB / 1.075 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004244/0.2513, allocations: 185 kB / 1.075 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004749/0.2517, allocations: 288.2 kB / 1.076 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000874/0.2526, allocations: 493.9 kB / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2526, allocations: 3.938 kB / 1.076 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001091/0.2537, allocations: 0.6217 MB / 1.077 GB, free: 1.918 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.11e-05/0.2538, allocations: 193.3 kB / 1.077 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2538, allocations: 0 / 1.077 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.2539, allocations: 8 kB / 1.077 GB, free: 1.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004434/0.2543, allocations: 115.8 kB / 1.077 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.2543, allocations: 7.938 kB / 1.077 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.2547, allocations: 67.5 kB / 1.077 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/0.2547, allocations: 19.94 kB / 1.077 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.581e-06/0.2547, allocations: 4 kB / 1.077 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000932/0.2557, allocations: 0.5118 MB / 1.078 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.2557, allocations: 0 / 1.078 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.01e-06/0.2557, allocations: 4 kB / 1.078 GB, free: 0.9453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.2561, allocations: 103.9 kB / 1.078 GB, free: 0.8438 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.2561, allocations: 11.92 kB / 1.078 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.2564, allocations: 59.42 kB / 1.078 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.945e-05/0.2565, allocations: 20 kB / 1.078 GB, free: 0.7539 MB / 0.8262 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.0002243/0.2567, allocations: 267.2 kB / 1.078 GB, free: 496 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.177e-05/0.2568, allocations: 79.03 kB / 1.078 GB, free: 416 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.2569, allocations: 83.2 kB / 1.078 GB, free: 328 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.257, allocations: 4 kB / 1.078 GB, free: 324 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.257, allocations: 4 kB / 1.078 GB, free: 320 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.257, allocations: 3.984 kB / 1.078 GB, free: 316 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005639/0.2575, allocations: 0.6257 MB / 1.079 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2576, allocations: 0 / 1.079 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004362/0.258, allocations: 91.89 kB / 1.079 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.258, allocations: 3.984 kB / 1.079 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.258, allocations: 8 kB / 1.079 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.258, allocations: 0 / 1.079 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2581, allocations: 0 / 1.079 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.2594, allocations: 0.7512 MB / 1.08 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001795/0.2596, allocations: 196.1 kB / 1.08 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.522e-05/0.2597, allocations: 19.92 kB / 1.08 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.2601, allocations: 43.95 kB / 1.08 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.721e-05/0.2602, allocations: 35.89 kB / 1.08 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.2602, allocations: 15.98 kB / 1.08 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000422/0.2607, allocations: 435 kB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2607, allocations: 0 / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004988/0.2612, allocations: 219.2 kB / 1.081 GB, free: 13.8 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.00164/0.2628, allocations: 1.319 MB / 1.082 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001405/0.2642, allocations: 0.8089 MB / 1.083 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.2642, allocations: 4.125 kB / 1.083 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004343/0.2647, allocations: 219.8 kB / 1.083 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000797/0.2655, allocations: 181.2 kB / 1.083 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007319/0.2728, allocations: 5.935 MB / 1.089 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.2732, allocations: 0.9144 MB / 1.09 GB, free: 4.195 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000321/0.2735, allocations: 89.11 kB / 1.09 GB, free: 4.109 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003041/0.2738, allocations: 259.3 kB / 1.09 GB, free: 3.855 MB / 0.8419 GB Notification: Performance of SimCode: time 2.7e-07/0.2738, allocations: 4 kB / 1.09 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4456/0.7195, allocations: 13.18 MB / 1.103 GB, free: 6.879 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.7197, allocations: 206.8 kB / 1.103 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.625, allocations: 4 kB / 1.103 GB, free: 6.617 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches