Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 109 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 192.8 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 207.6 MB / 233 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0503/0.0503, allocations: 8.203 MB / 293.4 MB, free: 13.68 MB / 238.1 MB " [Timeout remaining time 180] Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00221/0.00221, allocations: 74.81 kB / 410.9 MB, free: 46.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09542/0.09763, allocations: 50.93 MB / 461.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003531/0.1012, allocations: 1.91 MB / 463.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003999/0.1016, allocations: 147.5 kB / 463.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.77e-05/0.1016, allocations: 4 kB / 463.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.395e-05/0.1017, allocations: 23.8 kB / 463.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.992e-05/0.1018, allocations: 43.56 kB / 463.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.102, allocations: 39.94 kB / 464 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002152/0.1022, allocations: 171.3 kB / 464.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.1024, allocations: 69.86 kB / 464.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.094e-05/0.1025, allocations: 63.78 kB / 464.3 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.1026, allocations: 75.7 kB / 464.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.414e-05/0.1026, allocations: 20 kB / 464.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.309e-05/0.1027, allocations: 19.94 kB / 464.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.448e-05/0.1027, allocations: 39.84 kB / 464.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.1028, allocations: 83.66 kB / 464.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.1031, allocations: 187.3 kB / 464.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.016e-05/0.1031, allocations: 0 / 464.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1031, allocations: 0 / 464.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.1031, allocations: 0 / 464.7 MB, free: 10.11 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0006519/0.1038, allocations: 373.7 kB / 465.1 MB, free: 9.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.1038, allocations: 23.91 kB / 465.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.108e-05/0.1039, allocations: 20.84 kB / 465.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.104, allocations: 134.2 kB / 465.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.104, allocations: 12.38 kB / 465.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/0.1041, allocations: 16.38 kB / 465.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.1044, allocations: 150.2 kB / 465.4 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.1044, allocations: 8.172 kB / 465.4 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.1044, allocations: 7.938 kB / 465.4 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.1044, allocations: 4 kB / 465.4 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.1046, allocations: 111.8 kB / 465.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.1057, allocations: 0.6066 MB / 466.1 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004361/0.1061, allocations: 134.5 kB / 466.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002009/0.1063, allocations: 88.81 kB / 466.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.1064, allocations: 0 / 466.4 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.615e-05/0.1064, allocations: 30.56 kB / 466.4 MB, free: 8.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 9.92e-07/0.1064, allocations: 0 / 466.4 MB, free: 8.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008551/0.1072, allocations: 412 kB / 466.8 MB, free: 7.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.1073, allocations: 55.41 kB / 466.9 MB, free: 7.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.1074, allocations: 121.8 kB / 467 MB, free: 7.648 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.1074, allocations: 33.7 kB / 467 MB, free: 7.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.147e-05/0.1075, allocations: 136.1 kB / 467.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.1076, allocations: 59.53 kB / 467.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.765e-05/0.1076, allocations: 45.64 kB / 467.2 MB, free: 7.363 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002686/0.1079, allocations: 318.8 kB / 467.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.315e-05/0.108, allocations: 43.97 kB / 467.6 MB, free: 7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.1081, allocations: 89.08 kB / 467.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.1083, allocations: 141 kB / 467.8 MB, free: 6.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1083, allocations: 4 kB / 467.8 MB, free: 6.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002751/0.1086, allocations: 180.9 kB / 468 MB, free: 6.555 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1086, allocations: 11.98 kB / 468 MB, free: 6.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1086, allocations: 3.938 kB / 468 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1086, allocations: 4 kB / 468 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00018/0.1088, allocations: 47.92 kB / 468.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1088, allocations: 4 kB / 468.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.69e-05/0.1089, allocations: 7.938 kB / 468.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.1089, allocations: 8.156 kB / 468.1 MB, free: 6.469 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001194/0.109, allocations: 129.8 kB / 468.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.62e-05/0.1091, allocations: 15.94 kB / 468.2 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.105e-05/0.1091, allocations: 12.78 kB / 468.2 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1091, allocations: 0 / 468.2 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1091, allocations: 4 kB / 468.2 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.1091, allocations: 3.938 kB / 468.2 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006562/0.1098, allocations: 465.4 kB / 468.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1098, allocations: 0 / 468.7 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002008/0.11, allocations: 43.8 kB / 468.7 MB, free: 5.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.11, allocations: 4 kB / 468.7 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.11, allocations: 8 kB / 468.8 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.11, allocations: 0 / 468.8 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.11, allocations: 0 / 468.8 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003764/0.1104, allocations: 272.2 kB / 469 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.863e-05/0.1104, allocations: 15.89 kB / 469 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.1104, allocations: 4 kB / 469 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.8e-05/0.1105, allocations: 0 / 469 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.123e-05/0.1105, allocations: 7.984 kB / 469 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.1105, allocations: 8 kB / 469.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.673e-05/0.1106, allocations: 95.64 kB / 469.1 MB, free: 5.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1106, allocations: 3.938 kB / 469.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002671/0.1109, allocations: 36 kB / 469.2 MB, free: 5.281 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.0001178/0.111, allocations: 103.2 kB / 469.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000246/0.1112, allocations: 118.6 kB / 469.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1112, allocations: 0 / 469.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.798e-05/0.1113, allocations: 51.86 kB / 469.5 MB, free: 5.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.1115, allocations: 9.562 kB / 469.5 MB, free: 5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.1126, allocations: 0.5295 MB / 470 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.113, allocations: 0.7123 MB / 470.7 MB, free: 3.699 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.552e-05/0.113, allocations: 17.08 kB / 470.7 MB, free: 3.684 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.378e-05/0.1131, allocations: 19.38 kB / 470.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1131, allocations: 0 / 470.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of Templates: time 0.004216/0.1173, allocations: 1.132 MB / 471.9 MB, free: 2.531 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.869682691060007] Failed to read output from testmodel.py, exit status != 0: 0.1251712217926979 0.141122839 0.034795861000000004 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7eff008417b0>