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.000904/0.000904, allocations: 76.5 kB / 19.93 MB, free: 4.629 MB / 18.57 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.001084/0.001084, allocations: 177.9 kB / 23.21 MB, free: 1.352 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.8242/0.8242, allocations: 177.2 MB / 203.5 MB, free: 5.742 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-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 0.6609/0.6609, allocations: 154.5 MB / 414.5 MB, free: 0.8594 MB / 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.463e-06/1.463e-06, allocations: 0 / 0.6193 GB, free: 13.11 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.92e-05/2.066e-05, allocations: 2.281 kB / 0.6193 GB, free: 13.11 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002042/0.002063, allocations: 1.928 MB / 0.6211 GB, free: 11.16 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0008224/0.002885, allocations: 0.6972 MB / 0.6218 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.494e-05/0.00297, allocations: 4 kB / 0.6218 GB, free: 10.46 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.003165, allocations: 83.56 kB / 0.6219 GB, free: 10.38 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 8.684e-05/0.003252, allocations: 103.5 kB / 0.622 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.003668, allocations: 179 kB / 0.6222 GB, free: 10.1 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0002149/0.003883, allocations: 263.4 kB / 0.6224 GB, free: 9.844 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.004002, allocations: 54.11 kB / 0.6225 GB, free: 9.785 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.004135, allocations: 147.7 kB / 0.6226 GB, free: 9.641 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.004284, allocations: 143.7 kB / 0.6228 GB, free: 9.5 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.004311, allocations: 20 kB / 0.6228 GB, free: 9.48 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 9.608e-05/0.004407, allocations: 87.94 kB / 0.6229 GB, free: 9.395 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 5.985e-05/0.004467, allocations: 59.77 kB / 0.6229 GB, free: 9.336 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 5.59e-05/0.004522, allocations: 63.83 kB / 0.623 GB, free: 9.273 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.004804, allocations: 338.9 kB / 0.6233 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.004805, allocations: 0 / 0.6233 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of FrontEnd: time 9.12e-07/0.004806, allocations: 0 / 0.6233 GB, free: 8.941 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.157e-06/0.00481, allocations: 4 kB / 0.6233 GB, free: 8.938 MB / 0.5886 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.0005848/0.005395, allocations: 0.5025 MB / 0.6238 GB, free: 8.398 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.005428, allocations: 13.47 kB / 0.6238 GB, free: 8.387 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.648e-05/0.005475, allocations: 24.8 kB / 0.6238 GB, free: 8.363 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002989/0.005774, allocations: 248.9 kB / 0.6241 GB, free: 8.098 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.005792, allocations: 16.31 kB / 0.6241 GB, free: 8.082 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.005817, allocations: 12.38 kB / 0.6241 GB, free: 8.07 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.006093, allocations: 312.8 kB / 0.6244 GB, free: 7.723 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.006102, allocations: 192 / 0.6244 GB, free: 7.723 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.006117, allocations: 8.125 kB / 0.6244 GB, free: 7.715 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.006122, allocations: 4 kB / 0.6244 GB, free: 7.711 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.006292, allocations: 159 kB / 0.6246 GB, free: 7.551 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005135/0.006806, allocations: 0.5829 MB / 0.6251 GB, free: 6.93 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002152/0.007021, allocations: 184.2 kB / 0.6253 GB, free: 6.734 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003566/0.007377, allocations: 118.7 kB / 0.6254 GB, free: 6.609 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.007391, allocations: 3.984 kB / 0.6254 GB, free: 6.605 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.007575, allocations: 210.7 kB / 0.6256 GB, free: 6.375 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.007576, allocations: 0 / 0.6256 GB, free: 6.375 MB / 0.5886 GB Notification: Performance of matching and sorting (n=15): time 0.0004312/0.008007, allocations: 438.4 kB / 0.626 GB, free: 5.922 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.008056, allocations: 136.5 kB / 0.6262 GB, free: 5.758 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.008232, allocations: 269.8 kB / 0.6264 GB, free: 5.48 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.00825, allocations: 29.7 kB / 0.6264 GB, free: 5.445 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/0.008328, allocations: 160.4 kB / 0.6266 GB, free: 5.285 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.008354, allocations: 43.58 kB / 0.6266 GB, free: 5.242 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.557e-05/0.008399, allocations: 37.72 kB / 0.6267 GB, free: 5.199 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.679e-05/0.008476, allocations: 342.8 kB / 0.627 GB, free: 4.855 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.008581, allocations: 117.7 kB / 0.6271 GB, free: 4.734 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.008708, allocations: 210.2 kB / 0.6273 GB, free: 4.492 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.008896, allocations: 248.2 kB / 0.6276 GB, free: 4.227 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.008898, allocations: 0 / 0.6276 GB, free: 4.227 MB / 0.5886 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003025/0.009201, allocations: 380.7 kB / 0.6279 GB, free: 3.836 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.009229, allocations: 41.69 kB / 0.628 GB, free: 3.789 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.009233, allocations: 0 / 0.628 GB, free: 3.789 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.009245, allocations: 0 / 0.628 GB, free: 3.789 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.307e-05/0.009318, allocations: 31.92 kB / 0.628 GB, free: 3.758 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.009322, allocations: 0 / 0.628 GB, free: 3.758 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.149e-05/0.009384, allocations: 27.88 kB / 0.628 GB, free: 3.73 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.009394, allocations: 4.094 kB / 0.628 GB, free: 3.727 MB / 0.5886 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.0001064/0.0095, allocations: 192.5 kB / 0.6282 GB, free: 3.523 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.027e-05/0.00952, allocations: 27.8 kB / 0.6282 GB, free: 3.496 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.303e-05/0.009553, allocations: 37.7 kB / 0.6283 GB, free: 3.457 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.009555, allocations: 3.938 kB / 0.6283 GB, free: 3.453 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.009559, allocations: 0 / 0.6283 GB, free: 3.453 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.009561, allocations: 0 / 0.6283 GB, free: 3.453 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001247/0.009686, allocations: 205.1 kB / 0.6285 GB, free: 3.223 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.009687, allocations: 96 / 0.6285 GB, free: 3.223 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.546e-05/0.009743, allocations: 23.92 kB / 0.6285 GB, free: 3.199 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.009745, allocations: 3.938 kB / 0.6285 GB, free: 3.195 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.009757, allocations: 8 kB / 0.6285 GB, free: 3.188 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.81e-07/0.009758, allocations: 0 / 0.6285 GB, free: 3.188 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.009759, allocations: 0 / 0.6285 GB, free: 3.188 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004379/0.0102, allocations: 0.5201 MB / 0.629 GB, free: 2.633 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.915e-05/0.01022, allocations: 23.77 kB / 0.629 GB, free: 2.609 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.01024, allocations: 12 kB / 0.629 GB, free: 2.598 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.692e-05/0.01029, allocations: 16.05 kB / 0.6291 GB, free: 2.582 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.357e-05/0.01034, allocations: 23.95 kB / 0.6291 GB, free: 2.559 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.01036, allocations: 8 kB / 0.6291 GB, free: 2.551 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001071/0.01046, allocations: 193.2 kB / 0.6293 GB, free: 2.363 MB / 0.5886 GB Notification: Performance of sort global known variables: time 5e-08/0.01046, allocations: 0 / 0.6293 GB, free: 2.363 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001678/0.01063, allocations: 59.88 kB / 0.6293 GB, free: 2.305 MB / 0.5886 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.0001278/0.01076, allocations: 131.2 kB / 0.6295 GB, free: 2.168 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0002864/0.01105, allocations: 330.6 kB / 0.6298 GB, free: 1.82 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.01105, allocations: 0 / 0.6298 GB, free: 1.82 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.01118, allocations: 185 kB / 0.6299 GB, free: 1.621 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001806/0.01136, allocations: 41.55 kB / 0.63 GB, free: 1.582 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005004/0.01186, allocations: 0.4922 MB / 0.6305 GB, free: 1.055 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.316e-05/0.01194, allocations: 152.6 kB / 0.6306 GB, free: 0.8828 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.447e-05/0.01198, allocations: 16.5 kB / 0.6306 GB, free: 0.8672 MB / 0.5886 GB Notification: Performance of SimCode: time 4.51e-07/0.01198, allocations: 0 / 0.6306 GB, free: 0.8672 MB / 0.5886 GB Notification: Performance of Templates: time 0.003357/0.01533, allocations: 3.054 MB / 0.6336 GB, free: 13.82 MB / 0.6042 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.010533065535128] Failed to read output from testmodel.py, exit status != 0: 0.02046072855591774 0.027551556 0.021087234 Calling exit ...