Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/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.LimPID,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_IDEAS_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.0009959/0.0009963, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0009458/0.0009458, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 223.2 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7705/0.7705, allocations: 132.3 MB / 423.4 MB, free: 2.059 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003399/0.0003399, allocations: 8 kB / 0.5035 GB, free: 4.176 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.569/0.5694, allocations: 81.58 MB / 0.5831 GB, free: 4.004 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.003991/0.5734, allocations: 3.121 MB / 0.5862 GB, free: 1.734 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003096/0.5766, allocations: 1.267 MB / 0.5874 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006532/0.5773, allocations: 24.88 kB / 0.5875 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003543/0.5776, allocations: 89.98 kB / 0.5875 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005916/0.5782, allocations: 133.4 kB / 0.5877 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.5797, allocations: 463.5 kB / 0.5881 GB, free: 460 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001287/0.5809, allocations: 0.8162 MB / 0.5889 GB, free: 44 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006425/0.5816, allocations: 255.3 kB / 0.5892 GB, free: 15.92 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005591/0.5822, allocations: 274.2 kB / 0.5894 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004539/0.5826, allocations: 265.6 kB / 0.5897 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.589e-05/0.5827, allocations: 20.5 kB / 0.5897 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.723e-05/0.5828, allocations: 21.91 kB / 0.5897 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.583, allocations: 107.2 kB / 0.5898 GB, free: 15.6 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001592/0.5831, allocations: 141.6 kB / 0.5899 GB, free: 15.49 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009548/0.5841, allocations: 0.6138 MB / 0.5905 GB, free: 15.33 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.5841, allocations: 0 / 0.5905 GB, free: 15.33 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.5841, allocations: 0 / 0.5905 GB, free: 15.33 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.5841, allocations: 1.75 kB / 0.5905 GB, free: 15.33 MB / 446.1 MB 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.00235/0.5865, allocations: 1.076 MB / 0.5916 GB, free: 14.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/0.5866, allocations: 9.781 kB / 0.5916 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001651/0.5867, allocations: 91.45 kB / 0.5917 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001885/0.5869, allocations: 96.73 kB / 0.5918 GB, free: 14.47 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.5881, allocations: 0.5733 MB / 0.5923 GB, free: 14.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/0.5883, allocations: 104.7 kB / 0.5924 GB, free: 13.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.5884, allocations: 55.69 kB / 0.5925 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001416/0.5898, allocations: 0.6047 MB / 0.5931 GB, free: 13.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.5898, allocations: 4 kB / 0.5931 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-05/0.5899, allocations: 21.75 kB / 0.5931 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.484e-05/0.5899, allocations: 16.38 kB / 0.5931 GB, free: 13.63 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.5911, allocations: 441.3 kB / 0.5935 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003725/0.5948, allocations: 2.138 MB / 0.5956 GB, free: 12.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.5962, allocations: 0.5109 MB / 0.5961 GB, free: 11.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005496/0.5967, allocations: 222 kB / 0.5963 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.458e-05/0.5968, allocations: 13.55 kB / 0.5964 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009262/0.5977, allocations: 292.3 kB / 0.5966 GB, free: 11.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=45): time 3.646e-06/0.5978, allocations: 0 / 0.5966 GB, free: 11.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=45): time 0.001607/0.5994, allocations: 0.6353 MB / 0.5973 GB, free: 11.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.9e-05/0.5995, allocations: 90.2 kB / 0.5973 GB, free: 11.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008482/0.6003, allocations: 0.6164 MB / 0.5979 GB, free: 10.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.397e-05/0.6004, allocations: 36.17 kB / 0.598 GB, free: 10.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003171/0.6007, allocations: 354.6 kB / 0.5983 GB, free: 10.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.6009, allocations: 155.3 kB / 0.5985 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.677e-05/0.6009, allocations: 10.72 kB / 0.5985 GB, free: 10.37 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.6011, allocations: 326.7 kB / 0.5988 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004428/0.6015, allocations: 186.1 kB / 0.599 GB, free: 9.965 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005185/0.6021, allocations: 282.8 kB / 0.5992 GB, free: 9.766 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005061/0.6026, allocations: 233.6 kB / 0.5995 GB, free: 9.637 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.6026, allocations: 0 / 0.5995 GB, free: 9.637 MB / 446.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001271/0.6039, allocations: 0.6098 MB / 0.6001 GB, free: 9.316 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001598/0.604, allocations: 194.8 kB / 0.6002 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.6041, allocations: 2.375 kB / 0.6002 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.6041, allocations: 9.062 kB / 0.6003 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004873/0.6046, allocations: 117.9 kB / 0.6004 GB, free: 9.059 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.6046, allocations: 4.344 kB / 0.6004 GB, free: 9.059 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.605, allocations: 66.5 kB / 0.6004 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.822e-05/0.6051, allocations: 18.97 kB / 0.6004 GB, free: 9.016 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.702e-06/0.6051, allocations: 6.5 kB / 0.6005 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/0.6062, allocations: 0.5022 MB / 0.6009 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.6062, allocations: 1.625 kB / 0.6009 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.6062, allocations: 6.125 kB / 0.601 GB, free: 8.754 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004449/0.6066, allocations: 107.6 kB / 0.6011 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.6067, allocations: 9.203 kB / 0.6011 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/0.607, allocations: 61.2 kB / 0.6011 GB, free: 8.684 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/0.6071, allocations: 22.3 kB / 0.6011 GB, free: 8.676 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004693/0.6075, allocations: 276.8 kB / 0.6014 GB, free: 8.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.6077, allocations: 77.66 kB / 0.6015 GB, free: 8.387 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.6078, allocations: 74.41 kB / 0.6016 GB, free: 8.328 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.6079, allocations: 9.031 kB / 0.6016 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.6079, allocations: 0 / 0.6016 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/0.6079, allocations: 3.984 kB / 0.6016 GB, free: 8.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008778/0.6088, allocations: 0.6304 MB / 0.6022 GB, free: 7.805 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.6088, allocations: 0 / 0.6022 GB, free: 7.805 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004559/0.6092, allocations: 89.69 kB / 0.6023 GB, free: 7.781 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.6093, allocations: 2.062 kB / 0.6023 GB, free: 7.781 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.6093, allocations: 11.03 kB / 0.6023 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.242e-06/0.6093, allocations: 2.406 kB / 0.6023 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.6093, allocations: 0 / 0.6023 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.6109, allocations: 0.7562 MB / 0.603 GB, free: 7.359 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002447/0.6112, allocations: 192.9 kB / 0.6032 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.049e-05/0.6113, allocations: 15.05 kB / 0.6032 GB, free: 7.164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003732/0.6117, allocations: 41.84 kB / 0.6033 GB, free: 7.148 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.6118, allocations: 35.27 kB / 0.6033 GB, free: 7.129 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/0.6118, allocations: 14.64 kB / 0.6033 GB, free: 7.125 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006553/0.6125, allocations: 426.8 kB / 0.6037 GB, free: 6.879 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6125, allocations: 0 / 0.6037 GB, free: 6.879 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008264/0.6133, allocations: 215.2 kB / 0.6039 GB, free: 6.824 MB / 446.1 MB 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 (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.002063/0.6154, allocations: 1.31 MB / 0.6052 GB, free: 5.875 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.6172, allocations: 0.8047 MB / 0.606 GB, free: 5.445 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6172, allocations: 0 / 0.606 GB, free: 5.445 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004849/0.6177, allocations: 224.6 kB / 0.6062 GB, free: 5.352 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.6187, allocations: 183.8 kB / 0.6064 GB, free: 5.254 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007804/0.6266, allocations: 3.991 MB / 0.6103 GB, free: 2.809 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008088/0.6274, allocations: 0.9211 MB / 0.6112 GB, free: 2.008 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005808/0.628, allocations: 89.97 kB / 0.6113 GB, free: 1.969 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005172/0.6285, allocations: 259.8 kB / 0.6115 GB, free: 1.75 MB / 446.1 MB Notification: Performance of SimCode: time 1.793e-06/0.6286, allocations: 0.9375 kB / 0.6115 GB, free: 1.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03449/0.6631, allocations: 13.2 MB / 0.6244 GB, free: 5.891 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002248/0.6634, allocations: 176 kB / 0.6246 GB, free: 5.648 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.252/2.915, allocations: 0 / 0.6246 GB, free: 5.648 MB / 462.1 MB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_LimPID.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1) Environment - environmentSimulation: