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.00178/0.00178, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.002182/0.002182, allocations: 215.6 kB / 22.99 MB, free: 4.945 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.343/1.343, allocations: 207.7 MB / 233.8 MB, free: 9.793 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.05378/0.05378, allocations: 8.207 MB / 294.3 MB, free: 13.46 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.002364/0.002364, allocations: 75.22 kB / 411.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06349/0.06585, allocations: 50.93 MB / 462.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.0032/0.06905, allocations: 1.867 MB / 464.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000539/0.06959, allocations: 243.9 kB / 464.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.91e-05/0.06966, allocations: 0 / 464.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.17e-05/0.06972, allocations: 23.73 kB / 464.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.982e-05/0.06982, allocations: 43.56 kB / 464.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.07001, allocations: 47.94 kB / 464.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.07024, allocations: 191.2 kB / 465 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.07042, allocations: 78.17 kB / 465.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.905e-05/0.0705, allocations: 71.78 kB / 465.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.07062, allocations: 67.69 kB / 465.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.474e-05/0.07065, allocations: 16 kB / 465.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.468e-05/0.07069, allocations: 24 kB / 465.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.264e-05/0.07073, allocations: 39.84 kB / 465.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.07085, allocations: 87.7 kB / 465.4 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.07112, allocations: 199.2 kB / 465.6 MB, free: 9.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.07112, allocations: 4 kB / 465.6 MB, free: 9.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.07112, allocations: 0 / 465.6 MB, free: 9.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.07113, allocations: 0 / 465.6 MB, free: 9.793 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.0006215/0.07175, allocations: 386 kB / 466 MB, free: 9.379 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.07179, allocations: 15.98 kB / 466 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.635e-05/0.07184, allocations: 24.73 kB / 466 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.07195, allocations: 126.3 kB / 466.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.07197, allocations: 16.75 kB / 466.2 MB, free: 9.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.853e-05/0.07202, allocations: 24.33 kB / 466.2 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.07233, allocations: 165.2 kB / 466.3 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.07235, allocations: 192 / 466.3 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.07237, allocations: 7.938 kB / 466.4 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.07238, allocations: 11.94 kB / 466.4 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002292/0.07261, allocations: 111.7 kB / 466.5 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009827/0.07359, allocations: 0.5603 MB / 467 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.07393, allocations: 138.5 kB / 467.2 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.07416, allocations: 80.81 kB / 467.2 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.07417, allocations: 0 / 467.2 MB, free: 8.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.07436, allocations: 99.25 kB / 467.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.07436, allocations: 0 / 467.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008443/0.0752, allocations: 449 kB / 467.8 MB, free: 7.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.07525, allocations: 59.34 kB / 467.8 MB, free: 7.379 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.07536, allocations: 126 kB / 468 MB, free: 7.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.0754, allocations: 25.7 kB / 468 MB, free: 7.211 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.415e-05/0.07549, allocations: 140.3 kB / 468.1 MB, free: 7.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.455e-05/0.07558, allocations: 67.42 kB / 468.2 MB, free: 7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.379e-05/0.07565, allocations: 49.66 kB / 468.2 MB, free: 6.945 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.0758, allocations: 322.8 kB / 468.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.215e-05/0.07589, allocations: 47.97 kB / 468.6 MB, free: 6.574 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.07602, allocations: 103.8 kB / 468.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.07626, allocations: 170.6 kB / 468.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.07626, allocations: 0 / 468.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003086/0.07657, allocations: 209.5 kB / 469.1 MB, free: 6.047 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.07658, allocations: 7.938 kB / 469.1 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.07659, allocations: 7.984 kB / 469.1 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.0766, allocations: 0 / 469.1 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.07679, allocations: 47.92 kB / 469.1 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.0768, allocations: 4 kB / 469.1 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.821e-05/0.07686, allocations: 11.98 kB / 469.2 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.07688, allocations: 12 kB / 469.2 MB, free: 5.957 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.0001351/0.07702, allocations: 129.8 kB / 469.3 MB, free: 5.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.07704, allocations: 15.84 kB / 469.3 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.716e-05/0.07709, allocations: 20.81 kB / 469.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.07709, allocations: 0 / 469.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.07709, allocations: 0 / 469.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.0771, allocations: 0 / 469.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006187/0.07772, allocations: 430.2 kB / 469.7 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.07772, allocations: 3.938 kB / 469.7 MB, free: 5.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.07792, allocations: 43.92 kB / 469.8 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.07792, allocations: 0 / 469.8 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.07793, allocations: 8 kB / 469.8 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.07793, allocations: 4 kB / 469.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.07793, allocations: 0 / 469.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003818/0.07832, allocations: 305.6 kB / 470.1 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.07833, allocations: 11.89 kB / 470.1 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.157e-05/0.07838, allocations: 4 kB / 470.1 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.144e-05/0.07846, allocations: 4 kB / 470.1 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.54e-05/0.0785, allocations: 16.02 kB / 470.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.637e-05/0.07852, allocations: 4 kB / 470.1 MB, free: 4.914 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.228e-05/0.07861, allocations: 91.27 kB / 470.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.07861, allocations: 0 / 470.2 MB, free: 4.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000279/0.07889, allocations: 44 kB / 470.3 MB, free: 4.781 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.716e-05/0.07898, allocations: 107.1 kB / 470.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002382/0.07922, allocations: 135.6 kB / 470.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.07922, allocations: 0 / 470.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.883e-05/0.07932, allocations: 55.92 kB / 470.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002207/0.07954, allocations: 8.781 kB / 470.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009904/0.08053, allocations: 0.5908 MB / 471.2 MB, free: 3.848 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001068/0.08064, allocations: 107.9 kB / 471.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.727e-05/0.08069, allocations: 19.42 kB / 471.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.08069, allocations: 0 / 471.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of Templates: time 0.003564/0.08425, allocations: 1.823 MB / 473.1 MB, free: 1.887 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.505450980737805] Failed to read output from testmodel.py, exit status != 0: 0.09148106724023819 0.10674992100000001 0.032612075000000004 Calling exit ...