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.001928/0.001928, allocations: 80.3 kB / 19.18 MB, free: 2.52 MB / 14.72 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.002699/0.002699, allocations: 161 kB / 22.45 MB, free: 5.375 MB / 14.72 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 1.488/1.488, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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-531:190: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-531:198: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 1.186/1.186, allocations: 154.6 MB / 413.7 MB, free: 5.316 MB / 382.1 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 178] 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 3.016e-06/3.016e-06, allocations: 0 / 0.6185 GB, free: 4.668 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.108e-05/4.409e-05, allocations: 4.062 kB / 0.6185 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003745/0.003789, allocations: 1.921 MB / 0.6204 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001418/0.005206, allocations: 0.6973 MB / 0.6211 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.005312, allocations: 3.938 kB / 0.6211 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002652/0.005578, allocations: 83.58 kB / 0.6212 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.005722, allocations: 91.58 kB / 0.6212 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006299/0.006352, allocations: 183.6 kB / 0.6214 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003726/0.006725, allocations: 263.4 kB / 0.6217 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.006904, allocations: 58.11 kB / 0.6217 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002294/0.007134, allocations: 159.6 kB / 0.6219 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.007363, allocations: 135.7 kB / 0.622 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.487e-05/0.007408, allocations: 20 kB / 0.622 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.007591, allocations: 91.91 kB / 0.6221 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.007691, allocations: 59.78 kB / 0.6222 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 9.661e-05/0.007787, allocations: 59.83 kB / 0.6222 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005119/0.008299, allocations: 334.9 kB / 0.6225 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.145e-05/0.008311, allocations: 3.984 kB / 0.6225 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.044e-06/0.008313, allocations: 0 / 0.6225 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.771e-05/0.00833, allocations: 4 kB / 0.6225 GB, free: 0.5078 MB / 0.5294 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.001137/0.009467, allocations: 0.5104 MB / 0.623 GB, free: 15.96 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.009515, allocations: 9.469 kB / 0.6231 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.897e-05/0.009604, allocations: 36.75 kB / 0.6231 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.01021, allocations: 244.8 kB / 0.6233 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.01024, allocations: 8.375 kB / 0.6233 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.01028, allocations: 16.38 kB / 0.6233 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.01081, allocations: 310 kB / 0.6236 GB, free: 15.29 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.01082, allocations: 192 / 0.6236 GB, free: 15.29 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.01085, allocations: 12.12 kB / 0.6237 GB, free: 15.28 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.01086, allocations: 4 kB / 0.6237 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000303/0.01116, allocations: 154.1 kB / 0.6238 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.01228, allocations: 0.5984 MB / 0.6244 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004481/0.01273, allocations: 180.2 kB / 0.6246 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.01293, allocations: 122.2 kB / 0.6247 GB, free: 14.16 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.01296, allocations: 8 kB / 0.6247 GB, free: 14.16 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000357/0.01332, allocations: 206.7 kB / 0.6249 GB, free: 13.93 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.01332, allocations: 0 / 0.6249 GB, free: 13.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0008564/0.01418, allocations: 437 kB / 0.6253 GB, free: 13.48 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.01429, allocations: 140.5 kB / 0.6254 GB, free: 13.31 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/0.01459, allocations: 261.8 kB / 0.6257 GB, free: 13.05 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/0.01462, allocations: 33.7 kB / 0.6257 GB, free: 13.01 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.01477, allocations: 164.3 kB / 0.6259 GB, free: 12.84 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.301e-05/0.01481, allocations: 35.69 kB / 0.6259 GB, free: 12.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.484e-05/0.01489, allocations: 45.66 kB / 0.626 GB, free: 12.75 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000181/0.01507, allocations: 342.8 kB / 0.6263 GB, free: 12.41 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.01531, allocations: 113.7 kB / 0.6264 GB, free: 12.29 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002824/0.01559, allocations: 218.2 kB / 0.6266 GB, free: 12.04 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.01597, allocations: 236.8 kB / 0.6268 GB, free: 11.79 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.01597, allocations: 4 kB / 0.6268 GB, free: 11.79 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005806/0.01655, allocations: 380.7 kB / 0.6272 GB, free: 11.39 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.329e-05/0.01662, allocations: 41.69 kB / 0.6272 GB, free: 11.35 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.01663, allocations: 4 kB / 0.6272 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.01665, allocations: 0 / 0.6272 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.01679, allocations: 23.98 kB / 0.6273 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.0168, allocations: 0 / 0.6273 GB, free: 11.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.01693, allocations: 27.88 kB / 0.6273 GB, free: 11.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.01695, allocations: 8.094 kB / 0.6273 GB, free: 11.29 MB / 0.545 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.0002296/0.01718, allocations: 192.4 kB / 0.6275 GB, free: 11.08 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/0.01722, allocations: 27.8 kB / 0.6275 GB, free: 11.05 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.64e-05/0.01729, allocations: 29.77 kB / 0.6275 GB, free: 11.03 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.01729, allocations: 7.938 kB / 0.6275 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.0173, allocations: 0 / 0.6275 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.0173, allocations: 0 / 0.6275 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002677/0.01757, allocations: 205.2 kB / 0.6277 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.01757, allocations: 0 / 0.6277 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.01768, allocations: 19.98 kB / 0.6277 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.01769, allocations: 3.938 kB / 0.6278 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.01771, allocations: 12 kB / 0.6278 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.01772, allocations: 0 / 0.6278 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.01772, allocations: 0 / 0.6278 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008773/0.01859, allocations: 0.5175 MB / 0.6283 GB, free: 10.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.881e-05/0.01863, allocations: 27.84 kB / 0.6283 GB, free: 10.17 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.566e-05/0.01868, allocations: 11.94 kB / 0.6283 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.01879, allocations: 16.05 kB / 0.6283 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.01889, allocations: 27.95 kB / 0.6283 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.401e-05/0.01892, allocations: 4 kB / 0.6284 GB, free: 10.11 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002133/0.01913, allocations: 193.2 kB / 0.6285 GB, free: 9.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.01913, allocations: 0 / 0.6285 GB, free: 9.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003084/0.01944, allocations: 59.89 kB / 0.6286 GB, free: 9.871 MB / 0.545 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.0002538/0.01969, allocations: 135.1 kB / 0.6287 GB, free: 9.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005374/0.02023, allocations: 330.6 kB / 0.629 GB, free: 9.383 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.02023, allocations: 0 / 0.629 GB, free: 9.383 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002507/0.02048, allocations: 185 kB / 0.6292 GB, free: 9.184 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.02079, allocations: 33.19 kB / 0.6292 GB, free: 9.156 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008926/0.02168, allocations: 484.7 kB / 0.6297 GB, free: 8.648 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.02184, allocations: 136.7 kB / 0.6298 GB, free: 8.496 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.536e-05/0.02191, allocations: 17.48 kB / 0.6299 GB, free: 8.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.443e-05/0.02197, allocations: 20.5 kB / 0.6299 GB, free: 8.461 MB / 0.545 GB Notification: Performance of SimCode: time 4.31e-07/0.02197, allocations: 0 / 0.6299 GB, free: 8.461 MB / 0.545 GB Notification: Performance of Templates: time 0.007255/0.02922, allocations: 2.873 MB / 0.6327 GB, free: 5.641 MB / 0.545 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=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.996332984417677] Failed to read output from testmodel.py, exit status != 0: 0.0381198525428772 0.052961507000000005 0.04155384 Calling exit ...