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.001384/0.001384, allocations: 92.7 kB / 19.44 MB, free: 324 kB / 13.93 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.001655/0.001655, allocations: 161.3 kB / 22.75 MB, free: 1.656 MB / 18.57 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.471/1.471, allocations: 158.6 MB / 184.6 MB, free: 2.895 MB / 170.7 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.05036/0.05036, allocations: 6.408 MB / 243.3 MB, free: 8.793 MB / 234.7 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: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 310 MB, free: 52.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.57e-05/2.72e-05, allocations: 3.297 kB / 310 MB, free: 52.27 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002461/0.002488, allocations: 1.871 MB / 311.9 MB, free: 51.03 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004627/0.002951, allocations: 236.1 kB / 312.1 MB, free: 50.87 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.283e-05/0.003024, allocations: 2.781 kB / 312.1 MB, free: 50.87 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.461e-05/0.003089, allocations: 26.02 kB / 312.2 MB, free: 50.86 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001024/0.003191, allocations: 48.56 kB / 312.2 MB, free: 50.82 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002078/0.003399, allocations: 57.16 kB / 312.3 MB, free: 50.79 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001893/0.003588, allocations: 191.7 kB / 312.4 MB, free: 50.69 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.003776, allocations: 72.83 kB / 312.5 MB, free: 50.66 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.003911, allocations: 111.8 kB / 312.6 MB, free: 50.61 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.004019, allocations: 57.2 kB / 312.7 MB, free: 50.59 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.004054, allocations: 17.78 kB / 312.7 MB, free: 50.59 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.969e-05/0.004083, allocations: 20.06 kB / 312.7 MB, free: 50.59 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.738e-05/0.004121, allocations: 44.11 kB / 312.8 MB, free: 50.56 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.819e-05/0.004199, allocations: 62.3 kB / 312.8 MB, free: 50.54 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002518/0.004451, allocations: 212.4 kB / 313 MB, free: 50.45 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.004455, allocations: 3.406 kB / 313 MB, free: 50.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.004455, allocations: 0 / 313 MB, free: 50.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.269e-06/0.004461, allocations: 0 / 313 MB, free: 50.45 MB / 282.7 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.0005855/0.005046, allocations: 383.9 kB / 313.4 MB, free: 50.12 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.005086, allocations: 13.58 kB / 313.4 MB, free: 50.12 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.121e-05/0.005167, allocations: 31.42 kB / 313.4 MB, free: 50.11 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.935e-05/0.005247, allocations: 130.9 kB / 313.6 MB, free: 49.96 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.005271, allocations: 21.66 kB / 313.6 MB, free: 49.95 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.853e-05/0.005319, allocations: 21.5 kB / 313.6 MB, free: 49.94 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.005603, allocations: 161.6 kB / 313.8 MB, free: 49.87 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.005619, allocations: 4.75 kB / 313.8 MB, free: 49.87 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.00564, allocations: 11.12 kB / 313.8 MB, free: 49.86 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.005647, allocations: 4.5 kB / 313.8 MB, free: 49.86 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001784/0.005825, allocations: 109.8 kB / 313.9 MB, free: 49.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009087/0.006734, allocations: 0.5737 MB / 314.5 MB, free: 49.39 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.007041, allocations: 140.2 kB / 314.6 MB, free: 49.33 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001879/0.007229, allocations: 86.47 kB / 314.7 MB, free: 49.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.007251, allocations: 7.438 kB / 314.7 MB, free: 49.29 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.007431, allocations: 89.41 kB / 314.8 MB, free: 49.23 MB / 282.7 MB Notification: Performance of pre-optimization done (n=16): time 1.002e-06/0.007432, allocations: 0 / 314.8 MB, free: 49.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007788/0.008211, allocations: 447.8 kB / 315.2 MB, free: 48.94 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.008236, allocations: 54.16 kB / 315.3 MB, free: 48.88 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.175e-05/0.008308, allocations: 131.3 kB / 315.4 MB, free: 48.76 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.00832, allocations: 36.19 kB / 315.4 MB, free: 48.72 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.008362, allocations: 138.7 kB / 315.6 MB, free: 48.6 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.524e-05/0.008398, allocations: 65.47 kB / 315.6 MB, free: 48.55 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.636e-05/0.008454, allocations: 44.22 kB / 315.7 MB, free: 48.52 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.173e-05/0.008506, allocations: 327.1 kB / 316 MB, free: 48.2 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.645e-05/0.008572, allocations: 47.78 kB / 316.1 MB, free: 48.16 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.389e-05/0.008656, allocations: 102.7 kB / 316.2 MB, free: 48.04 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.008831, allocations: 169.2 kB / 316.3 MB, free: 47.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.008832, allocations: 0 / 316.3 MB, free: 47.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002251/0.009057, allocations: 224.4 kB / 316.5 MB, free: 47.64 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.009069, allocations: 4 kB / 316.5 MB, free: 47.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.009075, allocations: 4.219 kB / 316.5 MB, free: 47.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.009097, allocations: 4.797 kB / 316.6 MB, free: 47.63 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.009267, allocations: 53.88 kB / 316.6 MB, free: 47.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.009273, allocations: 4 kB / 316.6 MB, free: 47.58 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.424e-05/0.009338, allocations: 8.703 kB / 316.6 MB, free: 47.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.009349, allocations: 8.625 kB / 316.6 MB, free: 47.57 MB / 282.7 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 7.77e-05/0.009427, allocations: 138.8 kB / 316.8 MB, free: 47.42 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.009448, allocations: 11.95 kB / 316.8 MB, free: 47.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.118e-05/0.00949, allocations: 22.09 kB / 316.8 MB, free: 47.39 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.009491, allocations: 0 / 316.8 MB, free: 47.39 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.009496, allocations: 7.938 kB / 316.8 MB, free: 47.38 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.009501, allocations: 3.656 kB / 316.8 MB, free: 47.38 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/0.009934, allocations: 433.5 kB / 317.2 MB, free: 46.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.009936, allocations: 3.984 kB / 317.2 MB, free: 46.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.0101, allocations: 39.92 kB / 317.3 MB, free: 46.9 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.01011, allocations: 0 / 317.3 MB, free: 46.9 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.01012, allocations: 11.94 kB / 317.3 MB, free: 46.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.01012, allocations: 3.938 kB / 317.3 MB, free: 46.89 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.01012, allocations: 0 / 317.3 MB, free: 46.89 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002711/0.01039, allocations: 309.9 kB / 317.6 MB, free: 46.57 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.262e-05/0.01041, allocations: 15.95 kB / 317.6 MB, free: 46.55 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.01043, allocations: 0 / 317.6 MB, free: 46.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.6e-05/0.0105, allocations: 8 kB / 317.6 MB, free: 46.55 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/0.01054, allocations: 12.02 kB / 317.6 MB, free: 46.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.01055, allocations: 4 kB / 317.6 MB, free: 46.53 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.044e-05/0.01058, allocations: 95.27 kB / 317.7 MB, free: 46.44 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01058, allocations: 0 / 317.7 MB, free: 46.44 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000255/0.01083, allocations: 36 kB / 317.8 MB, free: 46.4 MB / 282.7 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 8.219e-05/0.01091, allocations: 107.2 kB / 317.9 MB, free: 46.29 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001839/0.0111, allocations: 127.8 kB / 318 MB, free: 46.16 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.0111, allocations: 0 / 318 MB, free: 46.16 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.787e-05/0.01117, allocations: 51.92 kB / 318 MB, free: 46.11 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.01142, allocations: 19.38 kB / 318.1 MB, free: 46.1 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006491/0.01207, allocations: 471.8 kB / 318.5 MB, free: 45.62 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.347e-05/0.01213, allocations: 114.5 kB / 318.6 MB, free: 45.49 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.172e-05/0.01217, allocations: 13.48 kB / 318.6 MB, free: 45.48 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.682e-05/0.01221, allocations: 20.48 kB / 318.7 MB, free: 45.46 MB / 282.7 MB Notification: Performance of SimCode: time 3e-07/0.01221, allocations: 0 / 318.7 MB, free: 45.46 MB / 282.7 MB Notification: Performance of Templates: time 0.00392/0.01613, allocations: 1.022 MB / 319.7 MB, free: 44.49 MB / 282.7 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: 4.3647180299740285]