Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009845/0.0009847, allocations: 179.7 kB / 15.43 MB, free: 6.203 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.309/1.309, allocations: 225.7 MB / 241.9 MB, free: 14.66 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03876/0.03875, allocations: 8.483 MB / 301.4 MB, free: 2.855 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.0007124/0.0007125, allocations: 100.7 kB / 354.3 MB, free: 2.75 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002784, allocations: 12 kB / 417.2 MB, free: 3.785 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2337, allocations: 52.12 MB / 469.3 MB, free: 69.91 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.001636/0.2354, allocations: 1.598 MB / 470.9 MB, free: 68.3 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003944/0.2358, allocations: 227.3 kB / 471.1 MB, free: 68.08 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.607e-05/0.2359, allocations: 4 kB / 471.1 MB, free: 68.08 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.823e-05/0.236, allocations: 19.84 kB / 471.1 MB, free: 68.06 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.83e-05/0.2361, allocations: 35.69 kB / 471.2 MB, free: 68.02 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.2363, allocations: 43.97 kB / 471.2 MB, free: 67.98 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.2365, allocations: 191.2 kB / 471.4 MB, free: 67.79 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002336/0.2367, allocations: 74.61 kB / 471.5 MB, free: 67.72 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.27e-05/0.2368, allocations: 59.8 kB / 471.5 MB, free: 67.66 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.392e-05/0.2369, allocations: 63.7 kB / 471.6 MB, free: 67.6 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.828e-05/0.2369, allocations: 12 kB / 471.6 MB, free: 67.59 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.576e-05/0.2369, allocations: 8 kB / 471.6 MB, free: 67.58 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.359e-05/0.237, allocations: 31.84 kB / 471.6 MB, free: 67.55 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.349e-05/0.2371, allocations: 109.3 kB / 471.8 MB, free: 67.43 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.2372, allocations: 185.4 kB / 471.9 MB, free: 67.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.2372, allocations: 4 kB / 471.9 MB, free: 67.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.2373, allocations: 4 kB / 471.9 MB, free: 67.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.2373, allocations: 0 / 471.9 MB, free: 67.25 MB / 346.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.0005499/0.2378, allocations: 427.4 kB / 472.4 MB, free: 66.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.2379, allocations: 12.03 kB / 472.4 MB, free: 66.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.411e-05/0.2379, allocations: 16.75 kB / 472.4 MB, free: 66.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.539e-05/0.238, allocations: 184.2 kB / 472.6 MB, free: 66.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.238, allocations: 24.67 kB / 472.6 MB, free: 66.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.2381, allocations: 24.28 kB / 472.6 MB, free: 66.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.2383, allocations: 157.2 kB / 472.8 MB, free: 66.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.2383, allocations: 4.188 kB / 472.8 MB, free: 66.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.2384, allocations: 11.94 kB / 472.8 MB, free: 66.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.2384, allocations: 4 kB / 472.8 MB, free: 66.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.2385, allocations: 107.5 kB / 472.9 MB, free: 66.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008186/0.2394, allocations: 0.7104 MB / 473.6 MB, free: 65.42 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.2397, allocations: 235.5 kB / 473.8 MB, free: 65.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.2398, allocations: 92.81 kB / 473.9 MB, free: 65.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.2398, allocations: 3.938 kB / 473.9 MB, free: 65.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001634/0.24, allocations: 99.38 kB / 474 MB, free: 64.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.262e-06/0.24, allocations: 0 / 474 MB, free: 64.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007066/0.2407, allocations: 0.5016 MB / 474.5 MB, free: 64.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.2408, allocations: 59.41 kB / 474.6 MB, free: 64.33 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.728e-05/0.2408, allocations: 122.1 kB / 474.7 MB, free: 64.2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.2409, allocations: 29.7 kB / 474.7 MB, free: 64.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.252e-05/0.2409, allocations: 132 kB / 474.9 MB, free: 64.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.2409, allocations: 67.11 kB / 474.9 MB, free: 63.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.965e-06/0.241, allocations: 4 kB / 474.9 MB, free: 63.96 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.237e-05/0.241, allocations: 322.8 kB / 475.2 MB, free: 63.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.412e-05/0.2411, allocations: 47.92 kB / 475.3 MB, free: 63.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.708e-05/0.2412, allocations: 105.8 kB / 475.4 MB, free: 63.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.2413, allocations: 168.4 kB / 475.6 MB, free: 63.28 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.2413, allocations: 0 / 475.6 MB, free: 63.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000216/0.2416, allocations: 211.4 kB / 475.8 MB, free: 63.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.2416, allocations: 4 kB / 475.8 MB, free: 63.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.2416, allocations: 0 / 475.8 MB, free: 63.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.2416, allocations: 4 kB / 475.8 MB, free: 63.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/0.2418, allocations: 55.91 kB / 475.8 MB, free: 63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.585e-06/0.2418, allocations: 4 kB / 475.8 MB, free: 63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.034e-05/0.2419, allocations: 8.219 kB / 475.8 MB, free: 62.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.2419, allocations: 12 kB / 475.9 MB, free: 62.98 MB / 346.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,$PRE.sampleHold.w,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 8.52e-05/0.242, allocations: 140.3 kB / 476 MB, free: 62.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.74e-05/0.242, allocations: 19.73 kB / 476 MB, free: 62.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.464e-05/0.2421, allocations: 24.83 kB / 476 MB, free: 62.79 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2421, allocations: 0 / 476 MB, free: 62.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.2421, allocations: 0 / 476 MB, free: 62.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2421, allocations: 3.938 kB / 476 MB, free: 62.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004825/0.2426, allocations: 0.5061 MB / 476.5 MB, free: 62.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2426, allocations: 0 / 476.5 MB, free: 62.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.2428, allocations: 43.97 kB / 476.6 MB, free: 62.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2428, allocations: 0 / 476.6 MB, free: 62.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.2428, allocations: 0 / 476.6 MB, free: 62.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2428, allocations: 4 kB / 476.6 MB, free: 62.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2428, allocations: 0 / 476.6 MB, free: 62.18 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002566/0.2431, allocations: 311.3 kB / 476.9 MB, free: 61.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.3e-05/0.2431, allocations: 85.02 kB / 477 MB, free: 61.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.2431, allocations: 4 kB / 477 MB, free: 61.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.054e-05/0.2432, allocations: 4 kB / 477 MB, free: 61.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.2432, allocations: 12.03 kB / 477 MB, free: 61.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-06/0.2432, allocations: 7.938 kB / 477 MB, free: 61.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.545e-05/0.2433, allocations: 99.2 kB / 477.1 MB, free: 61.63 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2433, allocations: 0 / 477.1 MB, free: 61.63 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002298/0.2435, allocations: 48 kB / 477.1 MB, free: 61.58 MB / 346.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 9.438e-05/0.2436, allocations: 103.2 kB / 477.3 MB, free: 61.47 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000186/0.2438, allocations: 135.8 kB / 477.4 MB, free: 61.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2438, allocations: 0 / 477.4 MB, free: 61.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.703e-05/0.2439, allocations: 59.81 kB / 477.4 MB, free: 61.28 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/0.2441, allocations: 12.44 kB / 477.5 MB, free: 61.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000801/0.2449, allocations: 0.7053 MB / 478.2 MB, free: 60.54 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/0.2451, allocations: 0.7204 MB / 478.9 MB, free: 59.79 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.807e-05/0.2451, allocations: 17.41 kB / 478.9 MB, free: 59.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.542e-05/0.2452, allocations: 15.44 kB / 478.9 MB, free: 59.76 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2452, allocations: 0 / 478.9 MB, free: 59.76 MB / 346.7 MB Notification: Performance of Templates: time 0.002688/0.2479, allocations: 1.019 MB / 479.9 MB, free: 58.74 MB / 346.7 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)