Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 173 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9961/0.9961, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:34:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:42:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8282/0.8282, allocations: 154.9 MB / 414.8 MB, free: 420 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0.5469 kB / 0.5207 GB, free: 1.883 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.299e-05, allocations: 9.047 kB / 0.5207 GB, free: 1.875 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003266/0.003289, allocations: 1.977 MB / 0.5226 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.001346/0.004635, allocations: 0.7151 MB / 0.5233 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.004754, allocations: 12.5 kB / 0.5233 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0002811/0.005035, allocations: 84.25 kB / 0.5234 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0001477/0.005182, allocations: 94.5 kB / 0.5235 GB, free: 15.01 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005988/0.005781, allocations: 185.3 kB / 0.5237 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0003468/0.006128, allocations: 259.4 kB / 0.5239 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.006287, allocations: 54.03 kB / 0.524 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.0065, allocations: 159.7 kB / 0.5241 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.006714, allocations: 136.4 kB / 0.5242 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.938e-05/0.006753, allocations: 17.41 kB / 0.5243 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001592/0.006912, allocations: 87.88 kB / 0.5243 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.007014, allocations: 55.77 kB / 0.5244 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 9.291e-05/0.007107, allocations: 67.77 kB / 0.5245 GB, free: 14 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003529/0.00746, allocations: 220.6 kB / 0.5247 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.007462, allocations: 0 / 0.5247 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of FrontEnd: time 7.41e-07/0.007463, allocations: 0 / 0.5247 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.451e-06/0.007469, allocations: 0 / 0.5247 GB, free: 13.79 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008142/0.008283, allocations: 0.6003 MB / 0.5253 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.008325, allocations: 12.03 kB / 0.5253 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.199e-05/0.008417, allocations: 40.75 kB / 0.5253 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.008738, allocations: 225.7 kB / 0.5255 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.008767, allocations: 12.38 kB / 0.5255 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.686e-05/0.008814, allocations: 24.27 kB / 0.5256 GB, free: 12.82 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.009202, allocations: 268.2 kB / 0.5258 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.009214, allocations: 192 / 0.5258 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.312e-05/0.009237, allocations: 8.906 kB / 0.5258 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.009251, allocations: 8.938 kB / 0.5258 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.009406, allocations: 86.12 kB / 0.5259 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008305/0.01024, allocations: 0.7145 MB / 0.5266 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002073/0.01044, allocations: 104.8 kB / 0.5267 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.607e-05/0.01054, allocations: 78.62 kB / 0.5268 GB, free: 11.44 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.119e-05/0.01055, allocations: 4 kB / 0.5268 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002038/0.01075, allocations: 157.5 kB / 0.5269 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=15): time 1.814e-06/0.01076, allocations: 0 / 0.5269 GB, free: 11.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=15): time 0.0004408/0.0112, allocations: 271.7 kB / 0.5272 GB, free: 10.97 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.01126, allocations: 136.5 kB / 0.5273 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002646/0.01153, allocations: 304.3 kB / 0.5276 GB, free: 10.49 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.01155, allocations: 29.7 kB / 0.5276 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.01169, allocations: 215.1 kB / 0.5279 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.659e-05/0.01174, allocations: 47.64 kB / 0.5279 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.4e-05/0.01181, allocations: 43.36 kB / 0.5279 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001741/0.01198, allocations: 0.5118 MB / 0.5284 GB, free: 9.621 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.687e-05/0.01208, allocations: 61.59 kB / 0.5285 GB, free: 9.555 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.01223, allocations: 178.8 kB / 0.5287 GB, free: 9.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.01241, allocations: 155.5 kB / 0.5288 GB, free: 9.16 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.01242, allocations: 4 kB / 0.5288 GB, free: 9.156 MB / 0.4948 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000353/0.01277, allocations: 251.7 kB / 0.5291 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.01281, allocations: 33.7 kB / 0.5291 GB, free: 8.855 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.01282, allocations: 7.938 kB / 0.5291 GB, free: 8.848 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.01284, allocations: 0 / 0.5291 GB, free: 8.848 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.01296, allocations: 24.48 kB / 0.5291 GB, free: 8.824 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.01297, allocations: 6.781 kB / 0.5291 GB, free: 8.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.305e-05/0.01306, allocations: 19.88 kB / 0.5291 GB, free: 8.801 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.01308, allocations: 8 kB / 0.5292 GB, free: 8.793 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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.0001422/0.01322, allocations: 202.2 kB / 0.5293 GB, free: 8.578 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.958e-05/0.01327, allocations: 39.8 kB / 0.5294 GB, free: 8.539 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.01332, allocations: 28.2 kB / 0.5294 GB, free: 8.516 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.01332, allocations: 0 / 0.5294 GB, free: 8.516 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.01333, allocations: 4 kB / 0.5294 GB, free: 8.512 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.01333, allocations: 3.984 kB / 0.5294 GB, free: 8.508 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002067/0.01354, allocations: 212.5 kB / 0.5296 GB, free: 8.266 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.01354, allocations: 3.984 kB / 0.5296 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.944e-05/0.01363, allocations: 15.94 kB / 0.5296 GB, free: 8.246 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.01364, allocations: 5.406 kB / 0.5296 GB, free: 8.242 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.01366, allocations: 8 kB / 0.5297 GB, free: 8.234 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.01366, allocations: 3.984 kB / 0.5297 GB, free: 8.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01366, allocations: 1.031 kB / 0.5297 GB, free: 8.23 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005908/0.01426, allocations: 335.7 kB / 0.53 GB, free: 7.863 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 2.768e-05/0.01428, allocations: 21.27 kB / 0.53 GB, free: 7.844 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.805e-05/0.01432, allocations: 11.94 kB / 0.53 GB, free: 7.832 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.504e-05/0.0144, allocations: 11.92 kB / 0.53 GB, free: 7.82 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.415e-05/0.01448, allocations: 27.95 kB / 0.53 GB, free: 7.793 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.0145, allocations: 6.438 kB / 0.5301 GB, free: 7.789 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001577/0.01466, allocations: 205.1 kB / 0.5303 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.2e-07/0.01466, allocations: 0 / 0.5303 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003048/0.01496, allocations: 63.81 kB / 0.5303 GB, free: 7.527 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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 Backend phase and start with SimCode phase: time 0.0001949/0.01516, allocations: 129.4 kB / 0.5304 GB, free: 7.395 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003197/0.01548, allocations: 236.5 kB / 0.5307 GB, free: 7.137 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.01548, allocations: 0 / 0.5307 GB, free: 7.137 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.01562, allocations: 144.7 kB / 0.5308 GB, free: 6.973 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002892/0.01591, allocations: 41.88 kB / 0.5308 GB, free: 6.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000668/0.01658, allocations: 417.6 kB / 0.5312 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.796e-05/0.01665, allocations: 87.81 kB / 0.5313 GB, free: 6.387 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 7.217e-05/0.01672, allocations: 17.23 kB / 0.5313 GB, free: 6.371 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.345e-05/0.01677, allocations: 20.5 kB / 0.5314 GB, free: 6.352 MB / 0.4948 GB Notification: Performance of SimCode: time 8.92e-07/0.01678, allocations: 1.5 kB / 0.5314 GB, free: 6.352 MB / 0.4948 GB Notification: Performance of Templates: time 0.007186/0.02396, allocations: 3.066 MB / 0.5344 GB, free: 3.457 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8240703409537673]