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.001142/0.001142, allocations: 104.8 kB / 16.62 MB, free: 6.805 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.001142/0.001142, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.323/1.323, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009481/0.0009482, allocations: 43.95 kB / 300.1 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09577, allocations: 49.44 MB / 349.6 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003623/0.09944, allocations: 2.032 MB / 351.6 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001026/0.1005, allocations: 0.5026 MB / 352.1 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002253/0.1007, allocations: 3.938 kB / 352.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.101, allocations: 15.91 kB / 352.1 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001946/0.1012, allocations: 23.78 kB / 352.1 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003386/0.1016, allocations: 43.95 kB / 352.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002867/0.1019, allocations: 143.5 kB / 352.3 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.1022, allocations: 65.52 kB / 352.4 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.1023, allocations: 63.72 kB / 352.5 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.1025, allocations: 71.69 kB / 352.5 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.088e-05/0.1025, allocations: 16 kB / 352.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.942e-05/0.1026, allocations: 16 kB / 352.6 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.411e-05/0.1026, allocations: 27.92 kB / 352.6 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.266e-05/0.1027, allocations: 75.66 kB / 352.7 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002727/0.103, allocations: 163.7 kB / 352.8 MB, free: 1.277 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.103, allocations: 0 / 352.8 MB, free: 1.277 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.103, allocations: 0 / 352.8 MB, free: 1.277 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.103, allocations: 0 / 352.8 MB, free: 1.277 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.0006741/0.1037, allocations: 447 kB / 353.3 MB, free: 0.793 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1038, allocations: 8.031 kB / 353.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.477e-05/0.1038, allocations: 16.75 kB / 353.3 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.1041, allocations: 200.1 kB / 353.5 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.1041, allocations: 12.38 kB / 353.5 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.554e-05/0.1041, allocations: 24.31 kB / 353.5 MB, free: 0.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00031/0.1045, allocations: 142.4 kB / 353.6 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1045, allocations: 4 kB / 353.7 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.1045, allocations: 4 kB / 353.7 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.1045, allocations: 8 kB / 353.7 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.1047, allocations: 95.44 kB / 353.8 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008558/0.1056, allocations: 0.5251 MB / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001644/0.1058, allocations: 74.55 kB / 354.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.841e-05/0.1058, allocations: 32.84 kB / 354.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.1059, allocations: 192 / 354.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.1059, allocations: 38.5 kB / 354.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 9.91e-07/0.1059, allocations: 4 kB / 354.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.001072/0.107, allocations: 0.5983 MB / 355 MB, free: 14.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.107, allocations: 59.28 kB / 355.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.1072, allocations: 129.8 kB / 355.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.1072, allocations: 29.7 kB / 355.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.713e-05/0.1073, allocations: 131.9 kB / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.535e-05/0.1073, allocations: 40.47 kB / 355.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.51e-05/0.1074, allocations: 41.66 kB / 355.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1075, allocations: 318.8 kB / 355.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.689e-05/0.1076, allocations: 35.92 kB / 355.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.1077, allocations: 86.84 kB / 355.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001975/0.1079, allocations: 130.7 kB / 356 MB, free: 13.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1079, allocations: 0 / 356 MB, free: 13.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002616/0.1082, allocations: 153.4 kB / 356.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.1082, allocations: 11.98 kB / 356.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1082, allocations: 192 / 356.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.1083, allocations: 8 kB / 356.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000159/0.1084, allocations: 35.92 kB / 356.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.1084, allocations: 7.938 kB / 356.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.977e-05/0.1085, allocations: 4.047 kB / 356.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.1085, allocations: 11.98 kB / 356.2 MB, free: 13.49 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001045/0.1086, allocations: 129.7 kB / 356.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.36e-05/0.1087, allocations: 11.89 kB / 356.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.458e-05/0.1087, allocations: 16.38 kB / 356.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.1087, allocations: 4 kB / 356.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.1088, allocations: 3.938 kB / 356.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.1088, allocations: 0 / 356.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005909/0.1094, allocations: 440 kB / 356.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1094, allocations: 4 kB / 356.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.1095, allocations: 28.05 kB / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.1095, allocations: 0 / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.1095, allocations: 0 / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.1096, allocations: 4 kB / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1096, allocations: 0 / 356.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000384/0.1099, allocations: 260.9 kB / 357.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.11, allocations: 85.23 kB / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.11, allocations: 0 / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.364e-05/0.1101, allocations: 7.938 kB / 357.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.407e-05/0.1102, allocations: 11.98 kB / 357.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-06/0.1102, allocations: 0 / 357.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.93e-05/0.1102, allocations: 95.27 kB / 357.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1102, allocations: 0 / 357.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002713/0.1105, allocations: 28 kB / 357.3 MB, free: 12.27 MB / 302.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 (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.0001323/0.1107, allocations: 115.2 kB / 357.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00024/0.1109, allocations: 91.84 kB / 357.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1109, allocations: 4 kB / 357.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.242e-05/0.111, allocations: 39.92 kB / 357.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.1114, allocations: 22.36 kB / 357.6 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008222/0.1122, allocations: 487.5 kB / 358.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.1125, allocations: 0.708 MB / 358.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.726e-05/0.1126, allocations: 16.88 kB / 358.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.769e-05/0.1126, allocations: 11.44 kB / 358.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1126, allocations: 0 / 358.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Templates: time 0.00341/0.116, allocations: 0.8387 MB / 359.7 MB, free: 9.891 MB / 302.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