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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001068/0.001068, allocations: 194.8 kB / 16.14 MB, free: 6.703 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.291/1.291, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03751/0.03751, allocations: 8.106 MB / 277.4 MB, free: 13.38 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.00122/0.00122, allocations: 63.91 kB / 336.5 MB, free: 26.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0791/0.08033, allocations: 48.29 MB / 384.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002718/0.08309, allocations: 2.012 MB / 386.8 MB, free: 8.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003629/0.08347, allocations: 227.3 kB / 387 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.375e-05/0.08355, allocations: 4 kB / 387 MB, free: 8.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.364e-05/0.08362, allocations: 23.84 kB / 387.1 MB, free: 8.344 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001088/0.08374, allocations: 39.67 kB / 387.1 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.08396, allocations: 35.98 kB / 387.1 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.08412, allocations: 187.2 kB / 387.3 MB, free: 8.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.08429, allocations: 78.61 kB / 387.4 MB, free: 8.008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.917e-05/0.08436, allocations: 71.77 kB / 387.5 MB, free: 7.938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.426e-05/0.08444, allocations: 75.64 kB / 387.5 MB, free: 7.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.08448, allocations: 16 kB / 387.6 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.14e-05/0.08451, allocations: 12 kB / 387.6 MB, free: 7.836 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.435e-05/0.08455, allocations: 35.91 kB / 387.6 MB, free: 7.801 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.95e-05/0.08464, allocations: 91.47 kB / 387.7 MB, free: 7.711 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.08481, allocations: 203.6 kB / 387.9 MB, free: 7.512 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.08482, allocations: 0 / 387.9 MB, free: 7.512 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.08483, allocations: 0 / 387.9 MB, free: 7.512 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.08483, allocations: 3.938 kB / 387.9 MB, free: 7.508 MB / 286.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.0005647/0.0854, allocations: 459.4 kB / 388.3 MB, free: 7.004 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.08544, allocations: 8.031 kB / 388.3 MB, free: 6.996 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.793e-05/0.0855, allocations: 16.75 kB / 388.4 MB, free: 6.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.774e-05/0.0856, allocations: 192.1 kB / 388.6 MB, free: 6.754 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.08563, allocations: 16.75 kB / 388.6 MB, free: 6.738 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/0.08567, allocations: 20.38 kB / 388.6 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.08594, allocations: 168.9 kB / 388.8 MB, free: 6.551 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.08596, allocations: 192 / 388.8 MB, free: 6.551 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.08598, allocations: 7.938 kB / 388.8 MB, free: 6.543 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.08599, allocations: 4 kB / 388.8 MB, free: 6.539 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.08618, allocations: 115.6 kB / 388.9 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009179/0.0871, allocations: 0.6987 MB / 389.6 MB, free: 5.66 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.08742, allocations: 231.6 kB / 389.8 MB, free: 5.406 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.08761, allocations: 96.81 kB / 389.9 MB, free: 5.309 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.08764, allocations: 4 kB / 389.9 MB, free: 5.305 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.08785, allocations: 87.66 kB / 390 MB, free: 5.207 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.08786, allocations: 0 / 390 MB, free: 5.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008065/0.08868, allocations: 0.5191 MB / 390.5 MB, free: 4.637 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.08872, allocations: 51.41 kB / 390.6 MB, free: 4.574 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.189e-05/0.08881, allocations: 122.1 kB / 390.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.08884, allocations: 33.7 kB / 390.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.414e-05/0.08891, allocations: 143.9 kB / 390.8 MB, free: 4.258 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.18e-05/0.08895, allocations: 59.11 kB / 390.9 MB, free: 4.199 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.706e-05/0.08902, allocations: 45.7 kB / 391 MB, free: 4.148 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.794e-05/0.08912, allocations: 322.8 kB / 391.3 MB, free: 3.824 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.812e-05/0.08921, allocations: 47.98 kB / 391.3 MB, free: 3.777 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.08932, allocations: 107.8 kB / 391.4 MB, free: 3.648 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.08951, allocations: 158.8 kB / 391.6 MB, free: 3.469 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.08952, allocations: 0 / 391.6 MB, free: 3.469 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002692/0.08979, allocations: 213.2 kB / 391.8 MB, free: 3.254 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.08982, allocations: 8 kB / 391.8 MB, free: 3.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.08983, allocations: 0 / 391.8 MB, free: 3.246 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.08985, allocations: 7.938 kB / 391.8 MB, free: 3.238 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.09004, allocations: 55.91 kB / 391.9 MB, free: 3.184 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.09006, allocations: 4 kB / 391.9 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.055e-05/0.09012, allocations: 4 kB / 391.9 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.28e-05/0.09014, allocations: 8 kB / 391.9 MB, free: 3.168 MB / 286.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.258e-05/0.09024, allocations: 137.9 kB / 392 MB, free: 3.023 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.271e-05/0.09027, allocations: 23.83 kB / 392 MB, free: 3 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.959e-05/0.09031, allocations: 12.84 kB / 392 MB, free: 2.984 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.09032, allocations: 4 kB / 392 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.09033, allocations: 0 / 392 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.09034, allocations: 0 / 392 MB, free: 2.98 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005586/0.0909, allocations: 0.5125 MB / 392.6 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.09092, allocations: 0 / 392.6 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.0911, allocations: 39.97 kB / 392.6 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.09111, allocations: 0 / 392.6 MB, free: 2.375 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.09113, allocations: 4 kB / 392.6 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.09114, allocations: 4 kB / 392.6 MB, free: 2.367 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.09115, allocations: 3.938 kB / 392.6 MB, free: 2.363 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.09146, allocations: 299.4 kB / 392.9 MB, free: 2.055 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.571e-05/0.09151, allocations: 85.02 kB / 393 MB, free: 1.953 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.285e-05/0.09154, allocations: 8 kB / 393 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.307e-05/0.09162, allocations: 0 / 393 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/0.09166, allocations: 12.03 kB / 393 MB, free: 1.934 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.09167, allocations: 11.94 kB / 393 MB, free: 1.922 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.173e-05/0.09174, allocations: 99.02 kB / 393.1 MB, free: 1.828 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09175, allocations: 0 / 393.1 MB, free: 1.828 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002642/0.09202, allocations: 40 kB / 393.1 MB, free: 1.789 MB / 286.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.678e-05/0.09212, allocations: 111.2 kB / 393.3 MB, free: 1.668 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.09234, allocations: 135.7 kB / 393.4 MB, free: 1.535 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.09236, allocations: 0 / 393.4 MB, free: 1.535 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.247e-05/0.09244, allocations: 63.91 kB / 393.5 MB, free: 1.473 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.09267, allocations: 11.8 kB / 393.5 MB, free: 1.465 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008985/0.09358, allocations: 0.6214 MB / 394.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.09385, allocations: 0.7204 MB / 394.8 MB, free: 76 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.239e-05/0.09391, allocations: 13.42 kB / 394.8 MB, free: 60 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.864e-05/0.09397, allocations: 23.44 kB / 394.8 MB, free: 36 kB / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.09397, allocations: 0 / 394.8 MB, free: 36 kB / 286.1 MB Notification: Performance of Templates: time 0.003101/0.09708, allocations: 1.03 MB / 395.9 MB, free: 15.01 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile (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)