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.0008195/0.0008199, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.0008649/0.000865, allocations: 177 kB / 17.56 MB, free: 6.18 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.319/1.319, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003647, allocations: 11.92 kB / 301.4 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09516/0.09555, allocations: 50.42 MB / 351.8 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002263/0.09785, allocations: 1.673 MB / 353.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000848/0.09872, allocations: 0.4909 MB / 354 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.09885, allocations: 7.938 kB / 354 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.94e-05/0.09896, allocations: 15.92 kB / 354 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.293e-05/0.09906, allocations: 27.77 kB / 354 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001889/0.09926, allocations: 35.97 kB / 354.1 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.09946, allocations: 135.5 kB / 354.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.09962, allocations: 57.95 kB / 354.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.09974, allocations: 51.72 kB / 354.3 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001057/0.09985, allocations: 63.7 kB / 354.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.552e-05/0.09989, allocations: 12 kB / 354.4 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.129e-05/0.09991, allocations: 8 kB / 354.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.671e-05/0.09994, allocations: 19.92 kB / 354.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.489e-05/0.1, allocations: 85.38 kB / 354.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000166/0.1002, allocations: 163.6 kB / 354.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1002, allocations: 0 / 354.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1002, allocations: 0 / 354.7 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.591e-05/0.1002, allocations: 0 / 354.7 MB, free: 0.6211 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.0005079/0.1008, allocations: 411.1 kB / 355.1 MB, free: 176 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.1008, allocations: 12.03 kB / 355.1 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.1008, allocations: 16.75 kB / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.101, allocations: 200.1 kB / 355.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.1011, allocations: 20.36 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.1011, allocations: 12.38 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00029/0.1014, allocations: 146.5 kB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.1014, allocations: 3.938 kB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.1014, allocations: 8 kB / 355.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1015, allocations: 4 kB / 355.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00021/0.1017, allocations: 103.4 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007382/0.1024, allocations: 0.5251 MB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001609/0.1026, allocations: 78.55 kB / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.658e-05/0.1027, allocations: 40.78 kB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.1027, allocations: 4.125 kB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.1027, allocations: 30.56 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.1027, allocations: 0 / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009595/0.1037, allocations: 0.61 MB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.1037, allocations: 59.34 kB / 356.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.1039, allocations: 125.8 kB / 357.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.1039, allocations: 33.64 kB / 357.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.001e-05/0.104, allocations: 132 kB / 357.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.104, allocations: 35.45 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.104, allocations: 25.7 kB / 357.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.31e-05/0.1041, allocations: 318.8 kB / 357.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.068e-05/0.1042, allocations: 39.88 kB / 357.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.1044, allocations: 93.59 kB / 357.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002056/0.1046, allocations: 131.8 kB / 357.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1046, allocations: 0 / 357.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002794/0.1049, allocations: 161.2 kB / 358 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1049, allocations: 8.188 kB / 358 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.1049, allocations: 7.984 kB / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.1049, allocations: 4 kB / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.1051, allocations: 39.92 kB / 358.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1051, allocations: 7.938 kB / 358.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.129e-05/0.1052, allocations: 4 kB / 358.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.1052, allocations: 8 kB / 358.1 MB, free: 12.85 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 9.06e-05/0.1053, allocations: 129.7 kB / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.1053, allocations: 11.89 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.1054, allocations: 20.42 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1054, allocations: 3.984 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1054, allocations: 3.938 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1054, allocations: 0 / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005323/0.106, allocations: 455.9 kB / 358.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.106, allocations: 0 / 358.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.1061, allocations: 23.98 kB / 358.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.1061, allocations: 0 / 358.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1061, allocations: 4 kB / 358.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.1062, allocations: 0 / 358.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1062, allocations: 0 / 358.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003448/0.1065, allocations: 269.1 kB / 359 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.079e-05/0.1066, allocations: 85.02 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.1066, allocations: 4 kB / 359.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.597e-05/0.1067, allocations: 8 kB / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.676e-05/0.1067, allocations: 16.05 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.1067, allocations: 0 / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.108e-05/0.1068, allocations: 95.27 kB / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1068, allocations: 0 / 359.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002731/0.1071, allocations: 28 kB / 359.2 MB, free: 11.6 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.0001018/0.1072, allocations: 114.2 kB / 359.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002276/0.1074, allocations: 96.16 kB / 359.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1074, allocations: 0 / 359.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.417e-05/0.1075, allocations: 43.92 kB / 359.5 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.1078, allocations: 15.92 kB / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007859/0.1086, allocations: 0.531 MB / 360 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.1089, allocations: 0.7082 MB / 360.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.833e-05/0.109, allocations: 16.88 kB / 360.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.028e-05/0.109, allocations: 11.44 kB / 360.7 MB, free: 10 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.109, allocations: 0 / 360.7 MB, free: 10 MB / 302.1 MB Notification: Performance of Templates: time 0.00304/0.1121, allocations: 0.7877 MB / 361.5 MB, free: 9.219 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