Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001011/0.001012, allocations: 177.4 kB / 15.43 MB, free: 5.871 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.364/1.364, allocations: 225.7 MB / 241.9 MB, free: 208 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.0408/0.0408, allocations: 8.487 MB / 301.5 MB, free: 5.586 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.0008878/0.0008878, allocations: 107.6 kB / 354.4 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002989/0.0002989, allocations: 13.25 kB / 417.2 MB, free: 89.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09321/0.09353, allocations: 52.12 MB / 469.3 MB, free: 42.15 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem): time 0.001924/0.09549, allocations: 2.03 MB / 471.3 MB, free: 40.11 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007702/0.09628, allocations: 0.6405 MB / 472 MB, free: 39.44 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.0964, allocations: 7.938 kB / 472 MB, free: 39.43 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.09653, allocations: 19.78 kB / 472 MB, free: 39.41 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.09665, allocations: 63.52 kB / 472 MB, free: 39.35 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001956/0.09686, allocations: 59.94 kB / 472.1 MB, free: 39.29 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002054/0.09707, allocations: 278.8 kB / 472.4 MB, free: 39.02 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.09725, allocations: 85.89 kB / 472.5 MB, free: 38.93 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.867e-05/0.09736, allocations: 99.56 kB / 472.6 MB, free: 38.84 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.09748, allocations: 103.5 kB / 472.7 MB, free: 38.73 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.778e-05/0.09752, allocations: 15.94 kB / 472.7 MB, free: 38.72 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.33e-05/0.09755, allocations: 12 kB / 472.7 MB, free: 38.71 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.308e-05/0.0976, allocations: 43.83 kB / 472.7 MB, free: 38.66 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.09772, allocations: 141 kB / 472.9 MB, free: 38.52 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.09793, allocations: 255.2 kB / 473.1 MB, free: 38.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.09794, allocations: 0 / 473.1 MB, free: 38.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.09795, allocations: 0 / 473.1 MB, free: 38.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.09796, allocations: 0 / 473.1 MB, free: 38.27 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008594/0.09883, allocations: 0.5437 MB / 473.7 MB, free: 37.67 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.09887, allocations: 8.031 kB / 473.7 MB, free: 37.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.114e-05/0.09894, allocations: 28.66 kB / 473.7 MB, free: 37.64 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.09918, allocations: 250.8 kB / 473.9 MB, free: 37.35 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.09921, allocations: 16.81 kB / 474 MB, free: 37.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.673e-05/0.09927, allocations: 28.31 kB / 474 MB, free: 37.31 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004714/0.09974, allocations: 239.5 kB / 474.2 MB, free: 37.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.09977, allocations: 0 / 474.2 MB, free: 37.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.159e-05/0.0998, allocations: 8 kB / 474.2 MB, free: 37.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.09981, allocations: 4 kB / 474.2 MB, free: 37.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004952/0.1003, allocations: 221.6 kB / 474.4 MB, free: 36.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008741/0.1012, allocations: 0.7254 MB / 475.2 MB, free: 36.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006558/0.1019, allocations: 270.5 kB / 475.4 MB, free: 35.78 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002603/0.1021, allocations: 132.8 kB / 475.6 MB, free: 35.65 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.1022, allocations: 4.406 kB / 475.6 MB, free: 35.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004293/0.1026, allocations: 165.2 kB / 475.7 MB, free: 35.47 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 1.623e-06/0.1026, allocations: 4 kB / 475.7 MB, free: 35.47 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.002178/0.1048, allocations: 1.192 MB / 476.9 MB, free: 34.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.1048, allocations: 55.41 kB / 477 MB, free: 34.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.105, allocations: 175.5 kB / 477.2 MB, free: 33.94 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.105, allocations: 33.7 kB / 477.2 MB, free: 33.9 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.448e-05/0.1051, allocations: 136.7 kB / 477.3 MB, free: 33.76 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.224e-05/0.1051, allocations: 98.56 kB / 477.4 MB, free: 33.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.258e-05/0.1052, allocations: 8 kB / 477.4 MB, free: 33.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.764e-05/0.1052, allocations: 330.8 kB / 477.7 MB, free: 33.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.1055, allocations: 111.9 kB / 477.9 MB, free: 33.21 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002523/0.1058, allocations: 133.5 kB / 478 MB, free: 33.08 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.1069, allocations: 0.5562 MB / 478.5 MB, free: 32.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.1069, allocations: 0 / 478.5 MB, free: 32.5 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006433/0.1076, allocations: 356.2 kB / 478.9 MB, free: 32.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.1076, allocations: 45.66 kB / 478.9 MB, free: 32.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1077, allocations: 0 / 478.9 MB, free: 32.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.1077, allocations: 0 / 478.9 MB, free: 32.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002796/0.108, allocations: 79.89 kB / 479 MB, free: 32.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.108, allocations: 0 / 479 MB, free: 32.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001987/0.1082, allocations: 35.97 kB / 479 MB, free: 31.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.1082, allocations: 8 kB / 479.1 MB, free: 31.97 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if damper.phi_nominal >= 1e-15 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if springDamper.phi_nominal >= 1e-15 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.trapezoid.T_start,$PRE.trapezoid.count,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.000218/0.1084, allocations: 170.1 kB / 479.2 MB, free: 31.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.1085, allocations: 27.64 kB / 479.2 MB, free: 31.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.515e-05/0.1085, allocations: 30.59 kB / 479.3 MB, free: 31.74 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1086, allocations: 4 kB / 479.3 MB, free: 31.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.1086, allocations: 0 / 479.3 MB, free: 31.74 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.1086, allocations: 3.984 kB / 479.3 MB, free: 31.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009832/0.1096, allocations: 0.7362 MB / 480 MB, free: 30.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1096, allocations: 0 / 480 MB, free: 30.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.1099, allocations: 75.89 kB / 480.1 MB, free: 30.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.1099, allocations: 4 kB / 480.1 MB, free: 30.86 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.1099, allocations: 4.062 kB / 480.1 MB, free: 30.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1099, allocations: 8 kB / 480.1 MB, free: 30.85 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1099, allocations: 3.984 kB / 480.1 MB, free: 30.84 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008245/0.1108, allocations: 0.5416 MB / 480.7 MB, free: 30.29 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.495e-05/0.1108, allocations: 97 kB / 480.8 MB, free: 30.17 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.1108, allocations: 8 kB / 480.8 MB, free: 30.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002007/0.111, allocations: 28.02 kB / 480.8 MB, free: 30.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.1111, allocations: 27.97 kB / 480.8 MB, free: 30.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.1111, allocations: 11.92 kB / 480.8 MB, free: 30.1 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.91e-05/0.1112, allocations: 135.1 kB / 481 MB, free: 29.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1112, allocations: 0 / 481 MB, free: 29.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002524/0.1115, allocations: 60 kB / 481 MB, free: 29.91 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 8.774e-05/0.1116, allocations: 115.1 kB / 481.1 MB, free: 29.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000598/0.1122, allocations: 331.1 kB / 481.5 MB, free: 29.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1122, allocations: 4.062 kB / 481.5 MB, free: 29.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002966/0.1125, allocations: 143.8 kB / 481.6 MB, free: 29.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004358/0.1129, allocations: 48.03 kB / 481.6 MB, free: 29.26 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.1151, allocations: 1.041 MB / 482.7 MB, free: 28.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.1153, allocations: 0.7519 MB / 483.4 MB, free: 27.41 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.346e-05/0.1154, allocations: 26.22 kB / 483.5 MB, free: 27.38 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.1155, allocations: 19.44 kB / 483.5 MB, free: 27.36 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1155, allocations: 0 / 483.5 MB, free: 27.36 MB / 330.7 MB Notification: Performance of Templates: time 0.004726/0.1202, allocations: 2.565 MB / 486 MB, free: 24.81 MB / 330.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)