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] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 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: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004463/0.004463, allocations: 97.62 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 200.7 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205.1 MB / 222.6 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05059/0.05059, allocations: 8.112 MB / 278 MB, free: 13.09 MB / 238.1 MB 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.002229/0.002229, allocations: 74.39 kB / 386.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3842, allocations: 48.29 MB / 435 MB, free: 8.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003378/0.3876, allocations: 1.95 MB / 436.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004805/0.3881, allocations: 236.1 kB / 437.2 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.851e-05/0.3882, allocations: 3.875 kB / 437.2 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.682e-05/0.3883, allocations: 25.12 kB / 437.2 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.3884, allocations: 42.81 kB / 437.2 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.3887, allocations: 56.41 kB / 437.3 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.3889, allocations: 188.3 kB / 437.5 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002385/0.3891, allocations: 99.02 kB / 437.6 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.101e-05/0.3892, allocations: 69.73 kB / 437.7 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.3894, allocations: 79.92 kB / 437.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.815e-05/0.3894, allocations: 18.16 kB / 437.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.772e-05/0.3894, allocations: 18.59 kB / 437.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.461e-05/0.3895, allocations: 44.28 kB / 437.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.3896, allocations: 93.48 kB / 437.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002759/0.3899, allocations: 206.2 kB / 438.1 MB, free: 6.074 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3899, allocations: 0 / 438.1 MB, free: 6.074 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3899, allocations: 0 / 438.1 MB, free: 6.074 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.3899, allocations: 1.375 kB / 438.1 MB, free: 6.074 MB / 318.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.000639/0.3906, allocations: 460.2 kB / 438.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3906, allocations: 9.625 kB / 438.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.32e-05/0.3907, allocations: 21.05 kB / 438.6 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.889e-05/0.3908, allocations: 183 kB / 438.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.3908, allocations: 17.61 kB / 438.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.966e-05/0.3908, allocations: 25.16 kB / 438.8 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.3911, allocations: 171.8 kB / 439 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.3912, allocations: 192 / 439 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.3912, allocations: 18.73 kB / 439 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.3912, allocations: 4.5 kB / 439 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001964/0.3914, allocations: 111 kB / 439.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.3924, allocations: 0.6994 MB / 439.8 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003338/0.3928, allocations: 230 kB / 440 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002036/0.393, allocations: 96.88 kB / 440.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.393, allocations: 1.094 kB / 440.1 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002223/0.3932, allocations: 100.3 kB / 440.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.553e-06/0.3933, allocations: 1.125 kB / 440.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008586/0.3941, allocations: 0.5023 MB / 440.7 MB, free: 4.074 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.3942, allocations: 54.73 kB / 440.8 MB, free: 4.012 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.029e-05/0.3943, allocations: 129.1 kB / 440.9 MB, free: 3.895 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.3943, allocations: 30.98 kB / 440.9 MB, free: 3.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.882e-05/0.3944, allocations: 139.9 kB / 441.1 MB, free: 3.734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.362e-05/0.3944, allocations: 68.59 kB / 441.1 MB, free: 3.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.085e-05/0.3945, allocations: 44.73 kB / 441.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.614e-05/0.3945, allocations: 322.7 kB / 441.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.056e-05/0.3946, allocations: 45.53 kB / 441.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.3947, allocations: 112 kB / 441.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.395, allocations: 159.5 kB / 441.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.395, allocations: 0.5 kB / 441.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003306/0.3953, allocations: 211.9 kB / 442 MB, free: 2.996 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.3954, allocations: 6.062 kB / 442 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.3954, allocations: 1.688 kB / 442 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.3954, allocations: 3.797 kB / 442 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.3957, allocations: 50.7 kB / 442.1 MB, free: 2.992 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.3957, allocations: 7.062 kB / 442.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.483e-05/0.3957, allocations: 8.438 kB / 442.1 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.3958, allocations: 6.875 kB / 442.1 MB, free: 2.984 MB / 318.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 9.011e-05/0.3959, allocations: 138.8 kB / 442.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.51e-05/0.3959, allocations: 17.91 kB / 442.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.4e-05/0.396, allocations: 15.98 kB / 442.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.396, allocations: 1.594 kB / 442.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.396, allocations: 4.469 kB / 442.3 MB, free: 2.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.396, allocations: 5.641 kB / 442.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006426/0.3966, allocations: 0.5109 MB / 442.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3966, allocations: 0 / 442.8 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001931/0.3968, allocations: 41.41 kB / 442.8 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3969, allocations: 0 / 442.8 MB, free: 2.414 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.3969, allocations: 6.188 kB / 442.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.3969, allocations: 1.312 kB / 442.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3969, allocations: 80 / 442.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000339/0.3972, allocations: 306.5 kB / 443.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.769e-05/0.3973, allocations: 84.22 kB / 443.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.3973, allocations: 7.125 kB / 443.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.521e-05/0.3974, allocations: 4 kB / 443.2 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.3974, allocations: 13.38 kB / 443.2 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.3975, allocations: 8.391 kB / 443.2 MB, free: 2.09 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.445e-05/0.3975, allocations: 94.7 kB / 443.3 MB, free: 2.012 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3975, allocations: 0 / 443.3 MB, free: 2.012 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.3978, allocations: 44.78 kB / 443.4 MB, free: 2 MB / 318.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 8.759e-05/0.3979, allocations: 110.6 kB / 443.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002567/0.3982, allocations: 136.6 kB / 443.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3982, allocations: 0 / 443.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.9e-05/0.3983, allocations: 61.08 kB / 443.7 MB, free: 1.836 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002346/0.3985, allocations: 7.266 kB / 443.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000871/0.3994, allocations: 0.5529 MB / 444.2 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/0.3996, allocations: 0.732 MB / 445 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.554e-05/0.3996, allocations: 13.28 kB / 445 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.217e-05/0.3997, allocations: 17.06 kB / 445 MB, free: 0.707 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3997, allocations: 0 / 445 MB, free: 0.707 MB / 318.1 MB Notification: Performance of Templates: time 0.004373/0.4041, allocations: 1.128 MB / 446.1 MB, free: 0.5664 MB / 318.1 MB 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]