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.0007325/0.0007325, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007155/0.0007155, allocations: 177.9 kB / 23.21 MB, free: 1.348 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 0.7443/0.7443, allocations: 158.6 MB / 185 MB, free: 3.004 MB / 170.7 MB " [Timeout remaining time 179] 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.02343/0.02343, allocations: 6.399 MB / 243.6 MB, free: 8.988 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.102e-06/1.102e-06, allocations: 0 / 361.1 MB, free: 4.023 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.304e-05/1.414e-05, allocations: 6.219 kB / 361.1 MB, free: 4.016 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.001525/0.001539, allocations: 1.887 MB / 363 MB, free: 2.109 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002965/0.001836, allocations: 231.2 kB / 363.2 MB, free: 1.883 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.574e-05/0.001892, allocations: 4 kB / 363.2 MB, free: 1.879 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.76e-05/0.001939, allocations: 23.73 kB / 363.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.109e-05/0.002, allocations: 43.56 kB / 363.3 MB, free: 1.812 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000167/0.002167, allocations: 55.88 kB / 363.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.002281, allocations: 195 kB / 363.5 MB, free: 1.566 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.002411, allocations: 78.34 kB / 363.6 MB, free: 1.492 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.674e-05/0.002478, allocations: 115.8 kB / 363.7 MB, free: 1.379 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.331e-05/0.002541, allocations: 55.81 kB / 363.8 MB, free: 1.324 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.002567, allocations: 16 kB / 363.8 MB, free: 1.309 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.553e-05/0.002582, allocations: 20 kB / 363.8 MB, free: 1.289 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.372e-05/0.002606, allocations: 39.89 kB / 363.8 MB, free: 1.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.237e-05/0.002649, allocations: 63.84 kB / 363.9 MB, free: 1.188 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.002777, allocations: 211.3 kB / 364.1 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.002779, allocations: 0 / 364.1 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.00278, allocations: 7.984 kB / 364.1 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.002784, allocations: 0 / 364.1 MB, free: 0.9727 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.0003549/0.003139, allocations: 385.9 kB / 364.5 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.003168, allocations: 15.92 kB / 364.5 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.003206, allocations: 16.84 kB / 364.5 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.802e-05/0.003254, allocations: 125.6 kB / 364.6 MB, free: 392 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.003267, allocations: 16.75 kB / 364.6 MB, free: 376 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/0.003293, allocations: 16.38 kB / 364.7 MB, free: 360 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001591/0.003452, allocations: 173.2 kB / 364.8 MB, free: 184 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.003463, allocations: 4.141 kB / 364.8 MB, free: 180 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.003476, allocations: 8.375 kB / 364.8 MB, free: 172 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.003481, allocations: 4.375 kB / 364.9 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.003588, allocations: 111.6 kB / 365 MB, free: 56 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006391/0.004227, allocations: 0.5684 MB / 365.5 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.004437, allocations: 134.5 kB / 365.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.004556, allocations: 88.81 kB / 365.7 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.077e-06/0.004565, allocations: 0 / 365.7 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001178/0.004683, allocations: 95.31 kB / 365.8 MB, free: 15.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.042e-06/0.004684, allocations: 0 / 365.8 MB, free: 15.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005906/0.005274, allocations: 442.8 kB / 366.3 MB, free: 14.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.005306, allocations: 55.41 kB / 366.3 MB, free: 14.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.574e-05/0.005372, allocations: 128.4 kB / 366.5 MB, free: 14.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.005383, allocations: 25.7 kB / 366.5 MB, free: 14.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.204e-05/0.005435, allocations: 140.3 kB / 366.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.282e-05/0.005468, allocations: 75.42 kB / 366.7 MB, free: 14.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.373e-05/0.005512, allocations: 45.7 kB / 366.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.209e-05/0.005584, allocations: 330.8 kB / 367.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.177e-05/0.005635, allocations: 43.98 kB / 367.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.623e-05/0.005712, allocations: 102.8 kB / 367.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.005852, allocations: 170.7 kB / 367.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.005854, allocations: 4 kB / 367.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001788/0.006032, allocations: 201.3 kB / 367.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.006043, allocations: 8 kB / 367.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.006047, allocations: 0 / 367.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.006058, allocations: 4 kB / 367.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.006179, allocations: 64 kB / 367.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.006184, allocations: 8 kB / 367.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.527e-05/0.006219, allocations: 7.984 kB / 367.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.006229, allocations: 12 kB / 367.7 MB, free: 13.14 MB / 298.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.148e-05/0.0063, allocations: 133.8 kB / 367.8 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.739e-06/0.00631, allocations: 7.953 kB / 367.8 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.006337, allocations: 16.78 kB / 367.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.006338, allocations: 0 / 367.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.006343, allocations: 7.938 kB / 367.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.006348, allocations: 3.984 kB / 367.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000354/0.006702, allocations: 440.8 kB / 368.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.006703, allocations: 0 / 368.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.991e-05/0.006802, allocations: 39.92 kB / 368.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.006804, allocations: 3.938 kB / 368.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.006814, allocations: 4 kB / 368.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.006823, allocations: 7.984 kB / 368.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.006823, allocations: 0 / 368.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002214/0.007045, allocations: 291.8 kB / 368.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.583e-05/0.007061, allocations: 15.98 kB / 368.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.007075, allocations: 4 kB / 368.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.872e-05/0.007114, allocations: 7.938 kB / 368.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.185e-05/0.007136, allocations: 11.98 kB / 368.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-06/0.007141, allocations: 4 kB / 368.6 MB, free: 12.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.308e-05/0.007174, allocations: 95.27 kB / 368.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007174, allocations: 0 / 368.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001763/0.007351, allocations: 40 kB / 368.8 MB, free: 11.97 MB / 298.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 6.653e-05/0.007417, allocations: 107.2 kB / 368.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.00757, allocations: 124.1 kB / 369 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.007571, allocations: 4.125 kB / 369 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.856e-05/0.007629, allocations: 62.41 kB / 369.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000151/0.00778, allocations: 11.94 kB / 369.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000552/0.008332, allocations: 483.5 kB / 369.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.733e-05/0.0084, allocations: 108.1 kB / 369.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.499e-05/0.008435, allocations: 24.5 kB / 369.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of SimCode: time 6.62e-07/0.008435, allocations: 0 / 369.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of Templates: time 0.002141/0.01058, allocations: 1.838 MB / 371.5 MB, free: 9.168 MB / 298.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: 3.981829982250929] Failed to read output from testmodel.py, exit status != 0: 0.014706599526107311 0.022652266 0.018388891 Calling exit ...