Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package ModelicaByExample with version 0.5.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 176.5 kB / 15.43 MB, free: 6.156 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 225.7 MB / 241.9 MB, free: 196 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03877/0.03877, allocations: 8.488 MB / 301.4 MB, free: 5.605 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007703/0.0007703, allocations: 107.6 kB / 354.3 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003136/0.0003137, allocations: 8.219 kB / 417.2 MB, free: 89.44 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.103, allocations: 52.14 MB / 469.3 MB, free: 42.16 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.001786/0.1049, allocations: 1.627 MB / 470.9 MB, free: 40.52 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008376/0.1057, allocations: 0.6172 MB / 471.5 MB, free: 39.88 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.847e-05/0.1058, allocations: 4 kB / 471.5 MB, free: 39.88 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 4.542e-05/0.1059, allocations: 23.84 kB / 471.6 MB, free: 39.86 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.106, allocations: 43.61 kB / 471.6 MB, free: 39.81 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002133/0.1062, allocations: 51.91 kB / 471.7 MB, free: 39.76 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001751/0.1064, allocations: 211.2 kB / 471.9 MB, free: 39.55 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.1066, allocations: 78.75 kB / 471.9 MB, free: 39.48 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.1068, allocations: 75.72 kB / 472 MB, free: 39.4 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.1069, allocations: 75.69 kB / 472.1 MB, free: 39.33 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.1069, allocations: 12 kB / 472.1 MB, free: 39.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.721e-05/0.107, allocations: 15.94 kB / 472.1 MB, free: 39.3 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.643e-05/0.107, allocations: 27.91 kB / 472.1 MB, free: 39.27 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.1071, allocations: 121.2 kB / 472.3 MB, free: 39.15 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.1073, allocations: 215.5 kB / 472.5 MB, free: 38.94 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.1073, allocations: 3.938 kB / 472.5 MB, free: 38.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1074, allocations: 0 / 472.5 MB, free: 38.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1074, allocations: 0 / 472.5 MB, free: 38.93 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.000615/0.108, allocations: 473 kB / 472.9 MB, free: 38.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.108, allocations: 8.031 kB / 473 MB, free: 38.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.418e-05/0.1081, allocations: 20.75 kB / 473 MB, free: 38.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.1082, allocations: 196 kB / 473.2 MB, free: 38.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.1082, allocations: 20.73 kB / 473.2 MB, free: 38.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.99e-05/0.1083, allocations: 16.38 kB / 473.2 MB, free: 38.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.1086, allocations: 190.4 kB / 473.4 MB, free: 37.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.1086, allocations: 4 kB / 473.4 MB, free: 37.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.1086, allocations: 8 kB / 473.4 MB, free: 37.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.1086, allocations: 4 kB / 473.4 MB, free: 37.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.1088, allocations: 113.1 kB / 473.5 MB, free: 37.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009257/0.1097, allocations: 0.724 MB / 474.2 MB, free: 37.02 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.11, allocations: 247.6 kB / 474.5 MB, free: 36.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.1102, allocations: 120.8 kB / 474.6 MB, free: 36.63 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.1102, allocations: 0 / 474.6 MB, free: 36.63 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002849/0.1105, allocations: 174.7 kB / 474.8 MB, free: 36.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.114e-06/0.1106, allocations: 0 / 474.8 MB, free: 36.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001335/0.1119, allocations: 0.8014 MB / 475.6 MB, free: 35.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.589e-05/0.112, allocations: 144.5 kB / 475.7 MB, free: 35.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.1121, allocations: 137.6 kB / 475.8 MB, free: 35.24 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.1121, allocations: 29.7 kB / 475.9 MB, free: 35.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.727e-05/0.1122, allocations: 136.5 kB / 476 MB, free: 35.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.383e-05/0.1123, allocations: 82.81 kB / 476.1 MB, free: 34.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.431e-05/0.1123, allocations: 8 kB / 476.1 MB, free: 34.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.773e-05/0.1124, allocations: 326.8 kB / 476.4 MB, free: 34.65 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.1125, allocations: 64.31 kB / 476.5 MB, free: 34.58 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000172/0.1127, allocations: 136.4 kB / 476.6 MB, free: 34.42 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.113, allocations: 260.7 kB / 476.9 MB, free: 34.13 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1131, allocations: 0 / 476.9 MB, free: 34.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000488/0.1136, allocations: 288.9 kB / 477.1 MB, free: 33.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.324e-05/0.1136, allocations: 33.69 kB / 477.2 MB, free: 33.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.1136, allocations: 7.938 kB / 477.2 MB, free: 33.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.1137, allocations: 7.938 kB / 477.2 MB, free: 33.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003019/0.114, allocations: 63.91 kB / 477.3 MB, free: 33.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.114, allocations: 7.938 kB / 477.3 MB, free: 33.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.1142, allocations: 12.25 kB / 477.3 MB, free: 33.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.461e-05/0.1142, allocations: 12 kB / 477.3 MB, free: 33.69 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(flow=false fixed = true ) "Sensed speed" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.pulseCounter.w,pulseCounter.w,$PRE.pulseCounter.count,pulseCounter.count,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.pulseCounter.next_phi,pulseCounter.next_phi,$PRE.pulseCounter.prev_phi,pulseCounter.prev_phi) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * 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.0002163/0.1144, allocations: 189 kB / 477.5 MB, free: 33.49 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/0.1145, allocations: 11.91 kB / 477.5 MB, free: 33.48 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.934e-05/0.1146, allocations: 16.78 kB / 477.5 MB, free: 33.46 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.1146, allocations: 7.984 kB / 477.5 MB, free: 33.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1146, allocations: 0 / 477.5 MB, free: 33.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1146, allocations: 0 / 477.5 MB, free: 33.45 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.1157, allocations: 0.7083 MB / 478.2 MB, free: 32.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1157, allocations: 4 kB / 478.2 MB, free: 32.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.116, allocations: 44.05 kB / 478.3 MB, free: 32.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.116, allocations: 4 kB / 478.3 MB, free: 32.62 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.1161, allocations: 4 kB / 478.3 MB, free: 32.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1161, allocations: 4.078 kB / 478.3 MB, free: 32.61 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.1161, allocations: 7.922 kB / 478.3 MB, free: 32.61 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007033/0.1168, allocations: 464.8 kB / 478.7 MB, free: 32.12 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.905e-05/0.1169, allocations: 89.02 kB / 478.8 MB, free: 32.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.78e-05/0.1169, allocations: 12 kB / 478.8 MB, free: 32.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.1171, allocations: 4 kB / 478.8 MB, free: 32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.504e-05/0.1172, allocations: 19.94 kB / 478.9 MB, free: 31.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-05/0.1173, allocations: 11.98 kB / 478.9 MB, free: 31.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.625e-05/0.1173, allocations: 103.2 kB / 479 MB, free: 31.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.814e-06/0.1173, allocations: 0 / 479 MB, free: 31.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000499/0.1178, allocations: 55.94 kB / 479 MB, free: 31.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count) * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0001351/0.118, allocations: 123.8 kB / 479.1 MB, free: 31.69 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000448/0.1185, allocations: 247.6 kB / 479.4 MB, free: 31.43 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1185, allocations: 0 / 479.4 MB, free: 31.43 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002269/0.1187, allocations: 195.2 kB / 479.6 MB, free: 31.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004149/0.1192, allocations: 16 kB / 479.6 MB, free: 31.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.1204, allocations: 0.7545 MB / 480.3 MB, free: 30.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/0.1206, allocations: 0.7322 MB / 481.1 MB, free: 29.67 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.339e-05/0.1207, allocations: 17.53 kB / 481.1 MB, free: 29.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.127e-05/0.1208, allocations: 19.44 kB / 481.1 MB, free: 29.64 MB / 330.7 MB Notification: Performance of SimCode: time 2.9e-07/0.1208, allocations: 0 / 481.1 MB, free: 29.64 MB / 330.7 MB Notification: Performance of Templates: time 0.005385/0.1262, allocations: 1.51 MB / 482.6 MB, free: 28.14 MB / 330.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)