Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01387/0.01387, allocations: 170.1 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7878/0.7878, allocations: 135.2 MB / 151 MB, free: 13.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.643/1.643, allocations: 223.2 MB / 406.8 MB, free: 3.227 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 99.19 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005388/0.0005393, allocations: 8 kB / 0.5692 GB, free: 14.08 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6736/0.6742, allocations: 82.3 MB / 0.6495 GB, free: 36.14 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1862/0.8605, allocations: 117.9 MB / 0.7647 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.8608, allocations: 75.97 kB / 0.7648 GB, free: 13.96 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.03472/0.8956, allocations: 12.37 MB / 0.7769 GB, free: 1.559 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.156e-06/0.8957, allocations: 3.938 kB / 0.7769 GB, free: 1.555 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001377/0.8958, allocations: 12.19 kB / 0.7769 GB, free: 1.543 MB / 0.5417 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.002885/0.8987, allocations: 0.9578 MB / 0.7778 GB, free: 0.5273 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.862e-05/0.8988, allocations: 12.03 kB / 0.7778 GB, free: 0.5156 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003229/0.8991, allocations: 106.5 kB / 0.7779 GB, free: 412 kB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003281/0.8995, allocations: 82.97 kB / 0.778 GB, free: 328 kB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.9007, allocations: 0.5292 MB / 0.7785 GB, free: 15.74 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.65e-05/0.9008, allocations: 41.31 kB / 0.7786 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.9009, allocations: 63.89 kB / 0.7786 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.9023, allocations: 0.66 MB / 0.7793 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.228e-05/0.9024, allocations: 4 kB / 0.7793 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.621e-05/0.9025, allocations: 27.78 kB / 0.7793 GB, free: 14.92 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.128e-05/0.9025, allocations: 16 kB / 0.7793 GB, free: 14.91 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.9037, allocations: 0.5126 MB / 0.7798 GB, free: 14.39 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004032/0.9078, allocations: 2.103 MB / 0.7819 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.9091, allocations: 0.5275 MB / 0.7824 GB, free: 11.69 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 5.219e-05/0.9092, allocations: 4.438 kB / 0.7824 GB, free: 11.69 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007844/0.91, allocations: 301.3 kB / 0.7827 GB, free: 11.38 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=50): time 5.19e-06/0.91, allocations: 0 / 0.7827 GB, free: 11.38 MB / 0.5573 GB Notification: Performance of matching and sorting (n=50): time 0.001753/0.9118, allocations: 0.7015 MB / 0.7834 GB, free: 10.67 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001425/0.9119, allocations: 166.7 kB / 0.7835 GB, free: 10.47 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006911/0.9126, allocations: 401.2 kB / 0.7839 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.223e-05/0.9127, allocations: 37.7 kB / 0.7839 GB, free: 10.03 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003438/0.9131, allocations: 313.2 kB / 0.7842 GB, free: 9.723 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/0.9133, allocations: 173.5 kB / 0.7844 GB, free: 9.551 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-05/0.9133, allocations: 8 kB / 0.7844 GB, free: 9.543 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002309/0.9136, allocations: 362.8 kB / 0.7847 GB, free: 9.18 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004853/0.9141, allocations: 209 kB / 0.7849 GB, free: 8.977 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006003/0.9147, allocations: 307.5 kB / 0.7852 GB, free: 8.645 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005822/0.9153, allocations: 255.8 kB / 0.7855 GB, free: 8.391 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.271e-06/0.9153, allocations: 4 kB / 0.7855 GB, free: 8.387 MB / 0.5573 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001395/0.9167, allocations: 0.6248 MB / 0.7861 GB, free: 7.75 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 5.692e-05/0.9168, allocations: 33.7 kB / 0.7861 GB, free: 7.711 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.9168, allocations: 4 kB / 0.7861 GB, free: 7.707 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.281e-05/0.9168, allocations: 7.984 kB / 0.7861 GB, free: 7.699 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005537/0.9174, allocations: 128 kB / 0.7863 GB, free: 7.574 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.027e-05/0.9174, allocations: 4 kB / 0.7863 GB, free: 7.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005752/0.918, allocations: 79.64 kB / 0.7863 GB, free: 7.492 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.177e-05/0.9181, allocations: 16 kB / 0.7864 GB, free: 7.477 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,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 (64): * Single equations (assignments): 63 * 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.0004359/0.9185, allocations: 209.7 kB / 0.7866 GB, free: 7.262 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.9187, allocations: 63.2 kB / 0.7866 GB, free: 7.199 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001655/0.9188, allocations: 69.52 kB / 0.7867 GB, free: 7.129 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.9188, allocations: 7.938 kB / 0.7867 GB, free: 7.121 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.9189, allocations: 0 / 0.7867 GB, free: 7.121 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.9189, allocations: 7.984 kB / 0.7867 GB, free: 7.113 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002304/0.9212, allocations: 1.322 MB / 0.788 GB, free: 5.734 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.9212, allocations: 0 / 0.788 GB, free: 5.734 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005329/0.9217, allocations: 107.9 kB / 0.7881 GB, free: 5.629 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.238e-05/0.9218, allocations: 4 kB / 0.7881 GB, free: 5.625 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.755e-05/0.9218, allocations: 15.98 kB / 0.7881 GB, free: 5.609 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.9218, allocations: 0 / 0.7881 GB, free: 5.609 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.9218, allocations: 0 / 0.7881 GB, free: 5.609 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/0.9235, allocations: 0.889 MB / 0.789 GB, free: 4.703 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.9238, allocations: 188.2 kB / 0.7892 GB, free: 4.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.564e-05/0.9239, allocations: 15.98 kB / 0.7892 GB, free: 4.484 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00041/0.9243, allocations: 43.97 kB / 0.7892 GB, free: 4.441 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.9244, allocations: 40.38 kB / 0.7893 GB, free: 4.402 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.9244, allocations: 16 kB / 0.7893 GB, free: 4.387 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004289/0.9249, allocations: 314.9 kB / 0.7896 GB, free: 4.082 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9249, allocations: 0 / 0.7896 GB, free: 4.082 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0005673/0.9255, allocations: 155.5 kB / 0.7897 GB, free: 3.93 MB / 0.5573 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.conPID.trigger,$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 (50): * Single equations (assignments): 48 * 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.001973/0.9274, allocations: 1.454 MB / 0.7911 GB, free: 2.453 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001163/0.9286, allocations: 0.5444 MB / 0.7917 GB, free: 1.895 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.9286, allocations: 0 / 0.7917 GB, free: 1.895 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005099/0.9292, allocations: 258.3 kB / 0.7919 GB, free: 1.641 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007169/0.9299, allocations: 145.5 kB / 0.7921 GB, free: 1.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5/1.43, allocations: 4.808 MB / 0.7968 GB, free: 130.8 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008168/1.431, allocations: 0.9034 MB / 0.7976 GB, free: 130.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000518/1.431, allocations: 66.16 kB / 0.7977 GB, free: 130.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/1.432, allocations: 219.3 kB / 0.7979 GB, free: 130.1 MB / 0.5573 GB Notification: Performance of SimCode: time 2.976e-06/1.432, allocations: 0.7188 kB / 0.7979 GB, free: 130.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04019/1.472, allocations: 11.52 MB / 0.8092 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/1.472, allocations: 173 kB / 0.8093 GB, free: 129.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.512/3.984, allocations: 0 / 0.8093 GB, free: 129.2 MB / 0.5573 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)