Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.001315/0.001315, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001408/0.001408, allocations: 219.9 kB / 23.01 MB, free: 4.609 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.348/1.348, allocations: 207.6 MB / 233.8 MB, free: 9.984 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.05321/0.05321, allocations: 8.2 MB / 294.2 MB, free: 13.64 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.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(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.002261/0.002261, allocations: 73.67 kB / 411.7 MB, free: 46.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0631/0.06536, allocations: 50.93 MB / 462.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003166/0.06853, allocations: 1.957 MB / 464.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004816/0.06901, allocations: 243.9 kB / 464.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.489e-05/0.06908, allocations: 4 kB / 464.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.842e-05/0.06915, allocations: 23.78 kB / 464.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.06925, allocations: 43.56 kB / 464.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002074/0.06946, allocations: 51.88 kB / 465 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002299/0.06969, allocations: 187.2 kB / 465.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.06987, allocations: 74.25 kB / 465.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.559e-05/0.06995, allocations: 83.77 kB / 465.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.07008, allocations: 79.69 kB / 465.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.044e-05/0.07011, allocations: 20 kB / 465.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.949e-05/0.07014, allocations: 16 kB / 465.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.315e-05/0.07018, allocations: 39.86 kB / 465.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.07029, allocations: 103.5 kB / 465.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.07052, allocations: 195.3 kB / 465.7 MB, free: 9.852 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.07053, allocations: 4 kB / 465.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.07053, allocations: 0 / 465.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.07053, allocations: 0 / 465.7 MB, free: 9.848 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006491/0.07118, allocations: 394 kB / 466.1 MB, free: 9.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.07121, allocations: 11.98 kB / 466.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.393e-05/0.07127, allocations: 20.8 kB / 466.2 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.07138, allocations: 126.3 kB / 466.3 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.0714, allocations: 16.69 kB / 466.3 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/0.07145, allocations: 24.33 kB / 466.3 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.07174, allocations: 169.1 kB / 466.5 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.07176, allocations: 192 / 466.5 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.07178, allocations: 11.94 kB / 466.5 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.07178, allocations: 4 kB / 466.5 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002133/0.072, allocations: 119.7 kB / 466.6 MB, free: 8.906 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.07308, allocations: 0.6261 MB / 467.2 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003249/0.0734, allocations: 145.9 kB / 467.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001986/0.0736, allocations: 84.81 kB / 467.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.07361, allocations: 3.938 kB / 467.5 MB, free: 7.984 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.07379, allocations: 91.36 kB / 467.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.07379, allocations: 0 / 467.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.000878/0.07467, allocations: 447.3 kB / 468 MB, free: 7.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.07471, allocations: 55.41 kB / 468.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.07482, allocations: 126.1 kB / 468.2 MB, free: 7.211 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.07484, allocations: 25.7 kB / 468.2 MB, free: 7.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.782e-05/0.07493, allocations: 136.3 kB / 468.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.7e-05/0.07499, allocations: 67.42 kB / 468.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.882e-05/0.07506, allocations: 45.7 kB / 468.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.0752, allocations: 326.8 kB / 468.8 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.858e-05/0.07529, allocations: 47.98 kB / 468.8 MB, free: 6.547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.07542, allocations: 102.8 kB / 468.9 MB, free: 6.422 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000233/0.07565, allocations: 166.8 kB / 469.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.07565, allocations: 0 / 469.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003201/0.07597, allocations: 213.4 kB / 469.3 MB, free: 6.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.07599, allocations: 4 kB / 469.3 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.07599, allocations: 4 kB / 469.3 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.07601, allocations: 0 / 469.3 MB, free: 6.012 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.07621, allocations: 55.91 kB / 469.3 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.07622, allocations: 0 / 469.3 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.834e-05/0.07628, allocations: 8 kB / 469.4 MB, free: 5.949 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.0763, allocations: 15.94 kB / 469.4 MB, free: 5.934 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.000115/0.07642, allocations: 137.8 kB / 469.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.098e-05/0.07644, allocations: 15.89 kB / 469.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.791e-05/0.07648, allocations: 16.78 kB / 469.5 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.07649, allocations: 0 / 469.5 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.07649, allocations: 0 / 469.5 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.0765, allocations: 3.984 kB / 469.5 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00067/0.07717, allocations: 489.5 kB / 470 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.07717, allocations: 4 kB / 470 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002004/0.07737, allocations: 35.92 kB / 470.1 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.07737, allocations: 4 kB / 470.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.07739, allocations: 8 kB / 470.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.07739, allocations: 0 / 470.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.07739, allocations: 4 kB / 470.1 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003809/0.07778, allocations: 309.6 kB / 470.4 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.662e-05/0.07779, allocations: 7.953 kB / 470.4 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.07781, allocations: 0 / 470.4 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.318e-05/0.0779, allocations: 4 kB / 470.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.07793, allocations: 16.02 kB / 470.4 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.07794, allocations: 11.94 kB / 470.4 MB, free: 4.812 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.441e-05/0.07801, allocations: 98.77 kB / 470.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.07801, allocations: 0 / 470.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.0783, allocations: 36 kB / 470.5 MB, free: 4.684 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.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 9.016e-05/0.07839, allocations: 99.25 kB / 470.6 MB, free: 4.578 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002598/0.07865, allocations: 140 kB / 470.8 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.07865, allocations: 0 / 470.8 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.307e-05/0.07875, allocations: 51.92 kB / 470.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.07899, allocations: 12.94 kB / 470.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009824/0.07997, allocations: 0.5865 MB / 471.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.08031, allocations: 0.7201 MB / 472.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.352e-05/0.08035, allocations: 19.44 kB / 472.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.08035, allocations: 0 / 472.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of Templates: time 0.003507/0.08386, allocations: 1.764 MB / 473.9 MB, free: 1.23 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.569679526146501] Failed to read output from testmodel.py, exit status != 0: 0.09102558298036456 0.107023328 0.033356685000000004 Calling exit ...