Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",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.0009451/0.0009452, allocations: 96.19 kB / 15.68 MB, free: 488 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.001091/0.001091, allocations: 174.4 kB / 16.56 MB, free: 6.387 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.182/1.182, allocations: 223.2 MB / 240.5 MB, free: 5.473 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5977/0.5977, allocations: 113.7 MB / 405.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002922, allocations: 8.812 kB / 493 MB, free: 8.641 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.11, allocations: 77.11 MB / 0.5567 GB, free: 11.73 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.003073/0.1132, allocations: 3.381 MB / 0.56 GB, free: 8.336 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.1146, allocations: 1.232 MB / 0.5612 GB, free: 7.098 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.1149, allocations: 23.88 kB / 0.5612 GB, free: 7.074 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.416e-05/0.115, allocations: 63.36 kB / 0.5613 GB, free: 7.012 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004295/0.1154, allocations: 223.2 kB / 0.5615 GB, free: 6.793 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.1159, allocations: 299.1 kB / 0.5618 GB, free: 6.504 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005634/0.1165, allocations: 0.5861 MB / 0.5624 GB, free: 5.918 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000339/0.1168, allocations: 307.5 kB / 0.5627 GB, free: 5.602 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.1171, allocations: 230.9 kB / 0.5629 GB, free: 5.375 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.1173, allocations: 246.6 kB / 0.5631 GB, free: 5.133 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.1173, allocations: 24 kB / 0.5631 GB, free: 5.109 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.485e-05/0.1174, allocations: 28 kB / 0.5632 GB, free: 5.082 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.451e-05/0.1175, allocations: 95.53 kB / 0.5633 GB, free: 4.988 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.561e-05/0.1176, allocations: 153.3 kB / 0.5634 GB, free: 4.832 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005165/0.1181, allocations: 0.8066 MB / 0.5642 GB, free: 4.023 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.1181, allocations: 0 / 0.5642 GB, free: 4.023 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1181, allocations: 0 / 0.5642 GB, free: 4.023 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.1181, allocations: 0 / 0.5642 GB, free: 4.023 MB / 430.1 MB 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.001306/0.1195, allocations: 0.9561 MB / 0.5651 GB, free: 3.008 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.1195, allocations: 11.97 kB / 0.5651 GB, free: 2.996 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.423e-05/0.1196, allocations: 98.52 kB / 0.5652 GB, free: 2.891 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.84e-05/0.1197, allocations: 79.06 kB / 0.5653 GB, free: 2.812 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006573/0.1204, allocations: 0.5368 MB / 0.5658 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.1204, allocations: 41.31 kB / 0.5659 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.296e-05/0.1205, allocations: 60 kB / 0.5659 GB, free: 2.145 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00087/0.1213, allocations: 0.6114 MB / 0.5665 GB, free: 1.508 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.1214, allocations: 4 kB / 0.5665 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.1214, allocations: 20 kB / 0.5665 GB, free: 1.484 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.1215, allocations: 16 kB / 0.5666 GB, free: 1.469 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008466/0.1223, allocations: 469 kB / 0.567 GB, free: 1.012 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002242/0.1246, allocations: 2.012 MB / 0.569 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007827/0.1253, allocations: 462.1 kB / 0.5694 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.1254, allocations: 8.438 kB / 0.5694 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004772/0.1259, allocations: 257.3 kB / 0.5697 GB, free: 14.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 3.066e-06/0.1259, allocations: 3.984 kB / 0.5697 GB, free: 14.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.001102/0.127, allocations: 0.6007 MB / 0.5703 GB, free: 13.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.127, allocations: 59.84 kB / 0.5703 GB, free: 13.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.1274, allocations: 445.9 kB / 0.5707 GB, free: 13.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.1275, allocations: 37.7 kB / 0.5708 GB, free: 13.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.1276, allocations: 324.3 kB / 0.5711 GB, free: 12.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.934e-05/0.1277, allocations: 165.6 kB / 0.5712 GB, free: 12.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.149e-05/0.1278, allocations: 11.94 kB / 0.5713 GB, free: 12.53 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.1279, allocations: 366.7 kB / 0.5716 GB, free: 12.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003406/0.1282, allocations: 177 kB / 0.5718 GB, free: 11.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003664/0.1286, allocations: 249.8 kB / 0.572 GB, free: 11.72 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.129, allocations: 223.9 kB / 0.5722 GB, free: 11.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.129, allocations: 4 kB / 0.5722 GB, free: 11.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009081/0.1299, allocations: 0.5664 MB / 0.5728 GB, free: 10.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/0.13, allocations: 45.62 kB / 0.5728 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.13, allocations: 0 / 0.5728 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.13, allocations: 4 kB / 0.5728 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.1304, allocations: 111.9 kB / 0.5729 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1304, allocations: 11.94 kB / 0.5729 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.1308, allocations: 67.59 kB / 0.573 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.1308, allocations: 20 kB / 0.573 GB, free: 10.66 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.131, allocations: 209.7 kB / 0.5732 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.1311, allocations: 55.34 kB / 0.5733 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.1312, allocations: 61.58 kB / 0.5733 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1312, allocations: 8 kB / 0.5734 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1312, allocations: 0 / 0.5734 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.1312, allocations: 7.922 kB / 0.5734 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.1327, allocations: 1.189 MB / 0.5745 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1327, allocations: 0 / 0.5745 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004351/0.1331, allocations: 95.89 kB / 0.5746 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1331, allocations: 4 kB / 0.5746 GB, free: 8.969 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.1332, allocations: 15.98 kB / 0.5746 GB, free: 8.953 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.1332, allocations: 0 / 0.5746 GB, free: 8.953 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1332, allocations: 7.938 kB / 0.5746 GB, free: 8.945 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.1343, allocations: 0.7757 MB / 0.5754 GB, free: 8.156 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.1345, allocations: 164.4 kB / 0.5756 GB, free: 7.977 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.754e-05/0.1345, allocations: 12 kB / 0.5756 GB, free: 7.965 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.1348, allocations: 35.91 kB / 0.5756 GB, free: 7.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.476e-05/0.1349, allocations: 36.38 kB / 0.5756 GB, free: 7.891 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.1349, allocations: 12 kB / 0.5756 GB, free: 7.879 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002669/0.1352, allocations: 310.9 kB / 0.5759 GB, free: 7.578 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1352, allocations: 0 / 0.5759 GB, free: 7.578 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003611/0.1356, allocations: 139.5 kB / 0.5761 GB, free: 7.441 MB / 446.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001334/0.1369, allocations: 1.335 MB / 0.5774 GB, free: 6.082 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007785/0.1377, allocations: 489 kB / 0.5778 GB, free: 5.594 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1377, allocations: 0 / 0.5778 GB, free: 5.594 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.1381, allocations: 222.9 kB / 0.5781 GB, free: 5.371 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005538/0.1387, allocations: 140.3 kB / 0.5782 GB, free: 5.242 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005155/0.1438, allocations: 4.761 MB / 0.5828 GB, free: 400 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1942/0.338, allocations: 0.8998 MB / 0.5837 GB, free: 32.24 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003127/0.3384, allocations: 62.39 kB / 0.5838 GB, free: 32.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.3386, allocations: 219.2 kB / 0.584 GB, free: 32.24 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3387, allocations: 1.594 kB / 0.584 GB, free: 32.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3479/0.6866, allocations: 10.61 MB / 0.5944 GB, free: 31.09 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001368/0.6867, allocations: 180.6 kB / 0.5945 GB, free: 30.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.544/2.231, allocations: 2.719 kB / 0.5945 GB, free: 30.86 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) Environment - environmentSimulation: