Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors") translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008168/0.0008168, allocations: 91.08 kB / 16.31 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008625/0.0008625, allocations: 180.6 kB / 17.21 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.3 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002666/0.0002668, allocations: 11.75 kB / 300.8 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09705/0.09734, allocations: 50.42 MB / 351.2 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002044/0.09943, allocations: 1.629 MB / 352.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007194/0.1002, allocations: 483.1 kB / 353.3 MB, free: 9.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.26e-05/0.1003, allocations: 4 kB / 353.3 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.338e-05/0.1004, allocations: 15.84 kB / 353.4 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.47e-05/0.1004, allocations: 27.77 kB / 353.4 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001805/0.1006, allocations: 31.97 kB / 353.4 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001689/0.1008, allocations: 143.4 kB / 353.6 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.101, allocations: 57.98 kB / 353.6 MB, free: 9.363 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.524e-05/0.1011, allocations: 47.8 kB / 353.7 MB, free: 9.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.1012, allocations: 55.75 kB / 353.7 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.1012, allocations: 8 kB / 353.7 MB, free: 9.254 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.3e-05/0.1012, allocations: 8 kB / 353.7 MB, free: 9.246 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.783e-05/0.1013, allocations: 23.92 kB / 353.7 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.007e-05/0.1013, allocations: 53.58 kB / 353.8 MB, free: 9.164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001493/0.1015, allocations: 123.7 kB / 353.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.1015, allocations: 0 / 353.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1015, allocations: 0 / 353.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1015, allocations: 0 / 353.9 MB, free: 9.043 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005393/0.1021, allocations: 410.9 kB / 354.3 MB, free: 8.594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.1021, allocations: 8.031 kB / 354.3 MB, free: 8.586 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.1022, allocations: 23.77 kB / 354.4 MB, free: 8.562 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.1023, allocations: 194.9 kB / 354.5 MB, free: 8.332 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.1024, allocations: 16 kB / 354.6 MB, free: 8.316 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.1024, allocations: 19.98 kB / 354.6 MB, free: 8.297 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000276/0.1027, allocations: 133.6 kB / 354.7 MB, free: 8.16 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.1027, allocations: 3.906 kB / 354.7 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.1027, allocations: 4 kB / 354.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.1028, allocations: 11.95 kB / 354.7 MB, free: 8.141 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002018/0.103, allocations: 103.6 kB / 354.8 MB, free: 8.039 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000764/0.1037, allocations: 0.5329 MB / 355.4 MB, free: 7.449 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000161/0.1039, allocations: 86.42 kB / 355.4 MB, free: 7.355 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.959e-05/0.104, allocations: 28.86 kB / 355.5 MB, free: 7.324 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.104, allocations: 3.984 kB / 355.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.104, allocations: 38.56 kB / 355.5 MB, free: 7.273 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.104, allocations: 0 / 355.5 MB, free: 7.273 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009743/0.105, allocations: 0.6104 MB / 356.1 MB, free: 6.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.1051, allocations: 51.41 kB / 356.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.1052, allocations: 132.1 kB / 356.3 MB, free: 6.371 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.1052, allocations: 25.7 kB / 356.3 MB, free: 6.34 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.683e-05/0.1053, allocations: 139.8 kB / 356.5 MB, free: 6.199 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.1053, allocations: 35.45 kB / 356.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-06/0.1054, allocations: 4 kB / 356.5 MB, free: 6.16 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1055, allocations: 326.8 kB / 356.8 MB, free: 5.832 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.285e-05/0.1055, allocations: 31.92 kB / 356.9 MB, free: 5.801 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.1057, allocations: 93.38 kB / 356.9 MB, free: 5.688 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.503e-05/0.1058, allocations: 47.94 kB / 357 MB, free: 5.641 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1058, allocations: 0 / 357 MB, free: 5.641 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002578/0.106, allocations: 161.4 kB / 357.2 MB, free: 5.477 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.1061, allocations: 4 kB / 357.2 MB, free: 5.473 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.1061, allocations: 4 kB / 357.2 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1061, allocations: 4 kB / 357.2 MB, free: 5.465 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.1063, allocations: 40.77 kB / 357.2 MB, free: 5.426 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.1063, allocations: 4 kB / 357.2 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.804e-05/0.1064, allocations: 4 kB / 357.2 MB, free: 5.418 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.1064, allocations: 11.98 kB / 357.2 MB, free: 5.406 MB / 286.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.582e-05/0.1065, allocations: 133.9 kB / 357.4 MB, free: 5.266 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.034e-05/0.1065, allocations: 7.906 kB / 357.4 MB, free: 5.258 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.83e-05/0.1066, allocations: 16.38 kB / 357.4 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1066, allocations: 0 / 357.4 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1066, allocations: 0 / 357.4 MB, free: 5.238 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.1066, allocations: 3.938 kB / 357.4 MB, free: 5.234 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005137/0.1071, allocations: 452 kB / 357.8 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.1071, allocations: 4 kB / 357.8 MB, free: 4.727 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.1073, allocations: 23.98 kB / 357.9 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1073, allocations: 0 / 357.9 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.1073, allocations: 4 kB / 357.9 MB, free: 4.699 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1073, allocations: 0 / 357.9 MB, free: 4.699 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.1073, allocations: 3.984 kB / 357.9 MB, free: 4.695 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003219/0.1076, allocations: 257 kB / 358.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.714e-05/0.1077, allocations: 89.05 kB / 358.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.1077, allocations: 0 / 358.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.479e-05/0.1078, allocations: 12.05 kB / 358.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/0.1078, allocations: 11.95 kB / 358.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.1079, allocations: 4 kB / 358.2 MB, free: 4.289 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.268e-05/0.1079, allocations: 99.25 kB / 358.3 MB, free: 4.191 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.313e-06/0.1079, allocations: 0 / 358.3 MB, free: 4.191 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002718/0.1082, allocations: 31.94 kB / 358.4 MB, free: 4.16 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.324e-05/0.1083, allocations: 101.2 kB / 358.5 MB, free: 4.055 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002114/0.1085, allocations: 99.83 kB / 358.5 MB, free: 3.957 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1085, allocations: 0 / 358.5 MB, free: 3.957 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.18e-05/0.1086, allocations: 39.92 kB / 358.6 MB, free: 3.918 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.1089, allocations: 11.98 kB / 358.6 MB, free: 3.906 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007234/0.1097, allocations: 0.5195 MB / 359.1 MB, free: 3.355 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.1099, allocations: 0.7121 MB / 359.8 MB, free: 2.617 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.905e-05/0.11, allocations: 12.88 kB / 359.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.001e-05/0.11, allocations: 15.91 kB / 359.9 MB, free: 2.586 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.11, allocations: 0 / 359.9 MB, free: 2.586 MB / 286.1 MB Notification: Performance of Templates: time 0.003172/0.1132, allocations: 0.7624 MB / 360.6 MB, free: 1.824 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches