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.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 107.1 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 189.9 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.436/1.436, allocations: 207.6 MB / 231.9 MB, free: 11.16 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.054/0.054, allocations: 8.197 MB / 292.2 MB, free: 14.3 MB / 238.1 MB [Timeout remaining time 90] 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.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") [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.002202/0.002202, allocations: 71.45 kB / 408.9 MB, free: 47.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07464/0.07684, allocations: 50.9 MB / 459.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003291/0.08013, allocations: 1.942 MB / 461.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004686/0.0806, allocations: 239.9 kB / 462 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.248e-05/0.08068, allocations: 4 kB / 462 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.443e-05/0.08074, allocations: 31.72 kB / 462 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.853e-05/0.08084, allocations: 35.64 kB / 462.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.08109, allocations: 51.86 kB / 462.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00024/0.08133, allocations: 187.2 kB / 462.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.08155, allocations: 85.81 kB / 462.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.079e-05/0.08163, allocations: 71.78 kB / 462.5 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.08175, allocations: 83.67 kB / 462.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.08179, allocations: 16 kB / 462.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.314e-05/0.08183, allocations: 20 kB / 462.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.889e-05/0.08187, allocations: 39.86 kB / 462.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.08198, allocations: 99.59 kB / 462.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.08228, allocations: 203.2 kB / 462.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.08228, allocations: 0 / 462.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.08229, allocations: 0 / 462.9 MB, free: 10.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.08229, allocations: 0 / 462.9 MB, free: 10.61 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.0007104/0.083, allocations: 471 kB / 463.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.08304, allocations: 16.03 kB / 463.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/0.08309, allocations: 20.8 kB / 463.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.08324, allocations: 176.2 kB / 463.6 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.645e-05/0.08329, allocations: 12.75 kB / 463.6 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.337e-05/0.08335, allocations: 24.33 kB / 463.6 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000319/0.08367, allocations: 168.9 kB / 463.8 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.08369, allocations: 8.109 kB / 463.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.08371, allocations: 11.92 kB / 463.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.08372, allocations: 8 kB / 463.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.08394, allocations: 107.7 kB / 463.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.08509, allocations: 0.7028 MB / 464.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003586/0.08545, allocations: 211.6 kB / 464.8 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002482/0.0857, allocations: 80.81 kB / 464.9 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.08572, allocations: 8 kB / 464.9 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001857/0.0859, allocations: 87.38 kB / 465 MB, free: 8.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.0859, allocations: 0 / 465 MB, free: 8.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.001001/0.08691, allocations: 0.5138 MB / 465.5 MB, free: 7.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.08696, allocations: 55.41 kB / 465.6 MB, free: 7.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.08709, allocations: 126 kB / 465.7 MB, free: 7.551 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.08711, allocations: 29.7 kB / 465.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.791e-05/0.0872, allocations: 140.2 kB / 465.8 MB, free: 7.375 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.809e-05/0.08726, allocations: 71.41 kB / 465.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.029e-05/0.08734, allocations: 45.7 kB / 466 MB, free: 7.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.08749, allocations: 322.8 kB / 466.3 MB, free: 6.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.354e-05/0.08757, allocations: 43.98 kB / 466.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.08771, allocations: 106.8 kB / 466.4 MB, free: 6.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002599/0.08797, allocations: 166.7 kB / 466.6 MB, free: 6.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.08797, allocations: 4 kB / 466.6 MB, free: 6.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003528/0.08833, allocations: 209.2 kB / 466.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.08835, allocations: 10.03 kB / 466.8 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.08836, allocations: 3.938 kB / 466.8 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.08838, allocations: 8.219 kB / 466.8 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.08857, allocations: 43.98 kB / 466.9 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.08858, allocations: 11.92 kB / 466.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.712e-05/0.08865, allocations: 8 kB / 466.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.08866, allocations: 12 kB / 466.9 MB, free: 6.262 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.0001177/0.08878, allocations: 137.7 kB / 467 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.08883, allocations: 11.89 kB / 467 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.556e-05/0.08889, allocations: 12.84 kB / 467.1 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.08889, allocations: 11.94 kB / 467.1 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.08889, allocations: 0 / 467.1 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.0889, allocations: 3.984 kB / 467.1 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006782/0.08958, allocations: 0.5063 MB / 467.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.08958, allocations: 0 / 467.6 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.08977, allocations: 35.98 kB / 467.6 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.08978, allocations: 0 / 467.6 MB, free: 5.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.682e-05/0.08979, allocations: 8 kB / 467.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.08979, allocations: 0 / 467.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.08979, allocations: 4 kB / 467.6 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004161/0.09021, allocations: 305.2 kB / 467.9 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.985e-05/0.09026, allocations: 81.06 kB / 468 MB, free: 5.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.09029, allocations: 8.094 kB / 468 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-05/0.09037, allocations: 8.031 kB / 468 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.385e-05/0.0904, allocations: 11.97 kB / 468 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.09041, allocations: 7.938 kB / 468 MB, free: 5.023 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.369e-05/0.09049, allocations: 103.3 kB / 468.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09049, allocations: 0 / 468.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.09078, allocations: 36 kB / 468.2 MB, free: 4.887 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 0.0001069/0.09088, allocations: 111.2 kB / 468.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002916/0.09117, allocations: 123.8 kB / 468.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.09118, allocations: 0 / 468.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.232e-05/0.09127, allocations: 52.36 kB / 468.4 MB, free: 4.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002315/0.0915, allocations: 12 kB / 468.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.09251, allocations: 0.5839 MB / 469 MB, free: 3.969 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.09289, allocations: 0.7318 MB / 469.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.232e-05/0.09293, allocations: 15.44 kB / 469.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of SimCode: time 4.6e-07/0.09293, allocations: 0 / 469.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of Templates: time 0.003731/0.09666, allocations: 1.753 MB / 471.5 MB, free: 1.445 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]