Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_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.005699/0.005699, allocations: 104.1 kB / 15.74 MB, free: 5.984 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.001345/0.001345, allocations: 197.8 kB / 16.68 MB, free: 5.91 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.242/1.242, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7674/0.7674, allocations: 132.2 MB / 422.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 62.28 kB / 0.5808 GB, free: 24.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1354, allocations: 80.21 MB / 0.6592 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005299/0.1407, allocations: 4.1 MB / 0.6632 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002576/0.1433, allocations: 1.332 MB / 0.6645 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000637/0.144, allocations: 23.88 kB / 0.6645 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004303/0.1444, allocations: 126.7 kB / 0.6646 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005679/0.1451, allocations: 178.4 kB / 0.6648 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009754/0.1461, allocations: 416.6 kB / 0.6652 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001137/0.1472, allocations: 0.9593 MB / 0.6661 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007174/0.1479, allocations: 454.1 kB / 0.6665 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004482/0.1484, allocations: 334.8 kB / 0.6669 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004251/0.1488, allocations: 342.3 kB / 0.6672 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.149, allocations: 92 kB / 0.6673 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.1491, allocations: 88 kB / 0.6674 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.1493, allocations: 175.4 kB / 0.6675 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004139/0.1497, allocations: 398 kB / 0.6679 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000965/0.1507, allocations: 1.059 MB / 0.6689 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.1507, allocations: 8 kB / 0.6689 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.188e-06/0.1507, allocations: 0 / 0.6689 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.327e-05/0.1507, allocations: 3.938 kB / 0.6689 GB, free: 0.707 MB / 0.4981 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.002045/0.1528, allocations: 1.073 MB / 0.67 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1528, allocations: 12.03 kB / 0.67 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/0.153, allocations: 98.69 kB / 0.6701 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.1531, allocations: 87.91 kB / 0.6702 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009032/0.154, allocations: 0.5689 MB / 0.6707 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/0.1541, allocations: 45.69 kB / 0.6708 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.4e-05/0.1542, allocations: 60.38 kB / 0.6708 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.1552, allocations: 0.6037 MB / 0.6714 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.1553, allocations: 4 kB / 0.6714 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/0.1553, allocations: 24 kB / 0.6715 GB, free: 14 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.1553, allocations: 16 kB / 0.6715 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009489/0.1563, allocations: 457 kB / 0.6719 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002809/0.1591, allocations: 1.993 MB / 0.6739 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008937/0.16, allocations: 453.2 kB / 0.6743 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004175/0.1605, allocations: 234.1 kB / 0.6745 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.553e-05/0.1605, allocations: 12.42 kB / 0.6745 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005158/0.161, allocations: 261.3 kB / 0.6748 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.746e-06/0.161, allocations: 0 / 0.6748 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001207/0.1622, allocations: 0.5842 MB / 0.6753 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.1623, allocations: 63.84 kB / 0.6754 GB, free: 9.852 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004817/0.1628, allocations: 438 kB / 0.6758 GB, free: 9.414 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.859e-05/0.1629, allocations: 37.7 kB / 0.6759 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002249/0.1631, allocations: 321 kB / 0.6762 GB, free: 9.055 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.1632, allocations: 169.5 kB / 0.6763 GB, free: 8.887 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.1634, allocations: 90.25 kB / 0.6764 GB, free: 8.793 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001675/0.1636, allocations: 366.8 kB / 0.6768 GB, free: 8.426 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005257/0.1641, allocations: 169 kB / 0.6769 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004279/0.1645, allocations: 249.8 kB / 0.6772 GB, free: 7.992 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007901/0.1653, allocations: 456 kB / 0.6776 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.1654, allocations: 0 / 0.6776 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00104/0.1664, allocations: 0.5584 MB / 0.6781 GB, free: 6.941 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.015e-05/0.1664, allocations: 45.88 kB / 0.6782 GB, free: 6.891 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1665, allocations: 0 / 0.6782 GB, free: 6.891 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.1665, allocations: 8 kB / 0.6782 GB, free: 6.883 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004798/0.167, allocations: 107.9 kB / 0.6783 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.167, allocations: 7.938 kB / 0.6783 GB, free: 6.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.1673, allocations: 63.42 kB / 0.6784 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.874e-05/0.1674, allocations: 16 kB / 0.6784 GB, free: 6.691 MB / 0.5137 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$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.0002525/0.1676, allocations: 209.8 kB / 0.6786 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.044e-05/0.1677, allocations: 63.22 kB / 0.6786 GB, free: 6.414 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001386/0.1679, allocations: 69.52 kB / 0.6787 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.1679, allocations: 7.984 kB / 0.6787 GB, free: 6.336 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1679, allocations: 4 kB / 0.6787 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1679, allocations: 0 / 0.6787 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.1696, allocations: 1.182 MB / 0.6799 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1696, allocations: 0 / 0.6799 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004537/0.1701, allocations: 91.88 kB / 0.68 GB, free: 5.008 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.1701, allocations: 3.938 kB / 0.68 GB, free: 5.004 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.1701, allocations: 12 kB / 0.68 GB, free: 4.992 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.1701, allocations: 4 kB / 0.68 GB, free: 4.988 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1701, allocations: 0 / 0.68 GB, free: 4.988 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.1714, allocations: 0.7574 MB / 0.6807 GB, free: 4.215 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/0.1716, allocations: 180.2 kB / 0.6809 GB, free: 4.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.582e-05/0.1717, allocations: 12 kB / 0.6809 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002698/0.172, allocations: 15.98 kB / 0.6809 GB, free: 3.992 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.953e-05/0.1721, allocations: 40.39 kB / 0.681 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.1721, allocations: 15.98 kB / 0.681 GB, free: 3.938 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003355/0.1724, allocations: 306.9 kB / 0.6813 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1725, allocations: 0 / 0.6813 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004208/0.1729, allocations: 139.5 kB / 0.6814 GB, free: 3.504 MB / 0.5137 GB 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 (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.001541/0.1744, allocations: 1.322 MB / 0.6827 GB, free: 2.148 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0008977/0.1753, allocations: 485.5 kB / 0.6831 GB, free: 1.668 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1753, allocations: 0 / 0.6831 GB, free: 1.668 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004026/0.1758, allocations: 214.4 kB / 0.6834 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007201/0.1765, allocations: 151.3 kB / 0.6835 GB, free: 1.32 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007066/0.1836, allocations: 4.798 MB / 0.6882 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004752/0.1841, allocations: 0.886 MB / 0.689 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002652/0.1844, allocations: 68.52 kB / 0.6891 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002923/0.1847, allocations: 223.4 kB / 0.6893 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of SimCode: time 9.11e-07/0.1847, allocations: 0 / 0.6893 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.2189, allocations: 11.46 MB / 0.7005 GB, free: 15.91 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.069/8.287, allocations: 12.88 kB / 0.7005 GB, free: 15.9 MB / 0.545 GB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)