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: translateModel(IDEAS.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPID") translateModel(IDEAS.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001618/0.001618, allocations: 191 kB / 16.14 MB, free: 6.688 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.504/1.504, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8524/0.8524, allocations: 132.2 MB / 422.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 64.59 kB / 0.5011 GB, free: 9.234 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2048, allocations: 80.2 MB / 0.5794 GB, free: 9.254 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.006354/0.2112, allocations: 3.711 MB / 0.583 GB, free: 5.523 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003571/0.2148, allocations: 1.305 MB / 0.5843 GB, free: 4.211 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009574/0.2158, allocations: 27.88 kB / 0.5843 GB, free: 4.184 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004299/0.2162, allocations: 95.09 kB / 0.5844 GB, free: 4.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000637/0.2169, allocations: 139 kB / 0.5846 GB, free: 3.953 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.2181, allocations: 0.5211 MB / 0.5851 GB, free: 3.445 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009078/0.219, allocations: 0.9095 MB / 0.586 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005792/0.2196, allocations: 337.6 kB / 0.5863 GB, free: 2.191 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003798/0.22, allocations: 314.3 kB / 0.5866 GB, free: 1.883 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003888/0.2204, allocations: 337.9 kB / 0.5869 GB, free: 1.551 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.2206, allocations: 36 kB / 0.5869 GB, free: 1.516 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.705e-05/0.2207, allocations: 40 kB / 0.587 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.2208, allocations: 143.2 kB / 0.5871 GB, free: 1.336 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002895/0.2211, allocations: 333.7 kB / 0.5874 GB, free: 1.008 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007001/0.2218, allocations: 0.8137 MB / 0.5882 GB, free: 196 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2218, allocations: 0 / 0.5882 GB, free: 196 kB / 494.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.2218, allocations: 0 / 0.5882 GB, free: 196 kB / 494.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.2218, allocations: 0 / 0.5882 GB, free: 196 kB / 494.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.002187/0.224, allocations: 1.188 MB / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.2241, allocations: 8.031 kB / 0.5894 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.2242, allocations: 95.81 kB / 0.5895 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009476/0.2252, allocations: 0.5987 MB / 0.5901 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.2253, allocations: 96.97 kB / 0.5902 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-05/0.2254, allocations: 52.38 kB / 0.5902 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.2265, allocations: 0.6042 MB / 0.5908 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.2266, allocations: 0 / 0.5908 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.603e-05/0.2266, allocations: 24 kB / 0.5908 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.2267, allocations: 15.94 kB / 0.5908 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009532/0.2276, allocations: 427.6 kB / 0.5912 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00274/0.2304, allocations: 2.11 MB / 0.5933 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.2316, allocations: 0.4997 MB / 0.5938 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004539/0.2321, allocations: 220.7 kB / 0.594 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.291e-05/0.2321, allocations: 7.984 kB / 0.594 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000729/0.2329, allocations: 283.1 kB / 0.5943 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=45): time 2.324e-06/0.2329, allocations: 0 / 0.5943 GB, free: 9.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45): time 0.001419/0.2343, allocations: 0.6062 MB / 0.5949 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.2344, allocations: 92.8 kB / 0.595 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007188/0.2351, allocations: 0.6099 MB / 0.5956 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.2352, allocations: 37.69 kB / 0.5956 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003355/0.2355, allocations: 356.9 kB / 0.5959 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.2357, allocations: 157.7 kB / 0.5961 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.2358, allocations: 98.16 kB / 0.5962 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.236, allocations: 330 kB / 0.5965 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004297/0.2364, allocations: 179 kB / 0.5967 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004957/0.2369, allocations: 276.2 kB / 0.5969 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008953/0.2378, allocations: 481.9 kB / 0.5974 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.2378, allocations: 7.938 kB / 0.5974 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00122/0.2391, allocations: 0.5916 MB / 0.598 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.2391, allocations: 37.64 kB / 0.598 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.2391, allocations: 4 kB / 0.598 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.2392, allocations: 4 kB / 0.598 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004717/0.2396, allocations: 107.8 kB / 0.5981 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.2396, allocations: 7.984 kB / 0.5981 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003738/0.24, allocations: 63.77 kB / 0.5982 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.2401, allocations: 19.98 kB / 0.5982 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005454/0.2406, allocations: 313.1 kB / 0.5985 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004436/0.2411, allocations: 272.2 kB / 0.5988 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008634/0.242, allocations: 450 kB / 0.5992 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.923e-06/0.242, allocations: 0 / 0.5992 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001108/0.2431, allocations: 0.5789 MB / 0.5998 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.2431, allocations: 43.88 kB / 0.5998 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.2431, allocations: 4 kB / 0.5998 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.262e-06/0.2431, allocations: 4 kB / 0.5998 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004325/0.2436, allocations: 99.83 kB / 0.5999 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.2436, allocations: 8 kB / 0.5999 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.2439, allocations: 51.56 kB / 0.6 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.244, allocations: 20 kB / 0.6 GB, free: 3.633 MB / 0.4981 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.0002357/0.2442, allocations: 220.7 kB / 0.6002 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.866e-05/0.2443, allocations: 75.06 kB / 0.6003 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001677/0.2445, allocations: 79.2 kB / 0.6003 GB, free: 3.258 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.2445, allocations: 4 kB / 0.6003 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.2445, allocations: 4 kB / 0.6003 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.2445, allocations: 3.984 kB / 0.6004 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007227/0.2453, allocations: 0.6102 MB / 0.6009 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2453, allocations: 4 kB / 0.601 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004349/0.2457, allocations: 83.89 kB / 0.601 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.2457, allocations: 7.984 kB / 0.601 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.2458, allocations: 8 kB / 0.601 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.2458, allocations: 4 kB / 0.601 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.2458, allocations: 0 / 0.601 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.2473, allocations: 0.7363 MB / 0.6018 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002603/0.2475, allocations: 192.1 kB / 0.602 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.303e-05/0.2476, allocations: 4 kB / 0.602 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003745/0.248, allocations: 39.95 kB / 0.602 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.979e-05/0.2481, allocations: 35.95 kB / 0.602 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-05/0.2481, allocations: 12 kB / 0.602 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004865/0.2486, allocations: 431 kB / 0.6025 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2486, allocations: 0 / 0.6025 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005996/0.2492, allocations: 219.3 kB / 0.6027 GB, free: 0.7969 MB / 0.4981 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.000153/0.2494, allocations: 111.1 kB / 0.6028 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.3076/0.557, allocations: 0.7878 MB / 0.6035 GB, free: 56.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/0.557, allocations: 0.6562 kB / 0.6035 GB, free: 56.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005617/0.5576, allocations: 213.8 kB / 0.6037 GB, free: 56.14 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009818/0.5586, allocations: 191.5 kB / 0.6039 GB, free: 56.14 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.5605, allocations: 1.439 MB / 0.6053 GB, free: 55.38 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.5608, allocations: 0.9206 MB / 0.6062 GB, free: 54.68 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003944/0.5612, allocations: 91.28 kB / 0.6063 GB, free: 54.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001405/0.5613, allocations: 47.89 kB / 0.6064 GB, free: 54.68 MB / 0.4981 GB Notification: Performance of SimCode: time 6.92e-07/0.5614, allocations: 0 / 0.6064 GB, free: 54.68 MB / 0.4981 GB Notification: Performance of Templates: time 0.01236/0.5737, allocations: 7.172 MB / 0.6134 GB, free: 54.36 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.makefile (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 & ./IDEAS_IDEAS.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)