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.001046/0.001046, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001052/0.001052, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.331/1.331, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 46.08 kB / 300 MB, free: 6.086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08297/0.08401, allocations: 49.45 MB / 349.4 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003587/0.08763, allocations: 2.017 MB / 351.4 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007622/0.08841, allocations: 0.4987 MB / 351.9 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.361e-05/0.08852, allocations: 4 kB / 351.9 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001363/0.08866, allocations: 15.86 kB / 351.9 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.893e-05/0.08876, allocations: 35.75 kB / 352 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000196/0.08897, allocations: 27.98 kB / 352 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.08917, allocations: 143.4 kB / 352.1 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.08934, allocations: 57.95 kB / 352.2 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.08945, allocations: 59.72 kB / 352.3 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000118/0.08958, allocations: 67.69 kB / 352.3 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.808e-05/0.08962, allocations: 16 kB / 352.3 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.551e-05/0.08965, allocations: 12 kB / 352.3 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.974e-05/0.08968, allocations: 23.92 kB / 352.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.157e-05/0.08977, allocations: 67.66 kB / 352.4 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.08994, allocations: 159.7 kB / 352.6 MB, free: 1.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.08995, allocations: 0 / 352.6 MB, free: 1.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.08996, allocations: 0 / 352.6 MB, free: 1.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.08997, allocations: 0 / 352.6 MB, free: 1.406 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.0005533/0.09053, allocations: 443.1 kB / 353 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.09057, allocations: 8.031 kB / 353 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.153e-05/0.09062, allocations: 16.75 kB / 353.1 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.09082, allocations: 208.1 kB / 353.3 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.09084, allocations: 12.31 kB / 353.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.242e-05/0.09087, allocations: 16.38 kB / 353.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.09114, allocations: 138.6 kB / 353.4 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.09117, allocations: 3.984 kB / 353.4 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/0.09119, allocations: 4 kB / 353.4 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.0912, allocations: 8 kB / 353.4 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002054/0.09141, allocations: 103.4 kB / 353.5 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007448/0.09217, allocations: 0.5251 MB / 354.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.09235, allocations: 78.47 kB / 354.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.158e-05/0.09243, allocations: 32.84 kB / 354.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.09246, allocations: 0 / 354.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.09248, allocations: 38.56 kB / 354.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.002e-06/0.09249, allocations: 4 kB / 354.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.001013/0.09351, allocations: 0.5945 MB / 354.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.09356, allocations: 59.28 kB / 354.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.09368, allocations: 137.1 kB / 355 MB, free: 14.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.0937, allocations: 25.7 kB / 355 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.09379, allocations: 135.9 kB / 355.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.953e-05/0.09382, allocations: 39.45 kB / 355.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.383e-05/0.09388, allocations: 33.67 kB / 355.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.714e-05/0.09398, allocations: 322.8 kB / 355.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.465e-05/0.09406, allocations: 27.98 kB / 355.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.09418, allocations: 94.78 kB / 355.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.09437, allocations: 131.8 kB / 355.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.09438, allocations: 0 / 355.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002445/0.09463, allocations: 153.3 kB / 355.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.09466, allocations: 10.66 kB / 355.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.09467, allocations: 192 / 356 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.09469, allocations: 8 kB / 356 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.09485, allocations: 31.98 kB / 356 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.09487, allocations: 11.88 kB / 356 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.621e-05/0.09495, allocations: 15.98 kB / 356 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.09497, allocations: 4 kB / 356 MB, free: 13.62 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 8.98e-05/0.09506, allocations: 129.8 kB / 356.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.0951, allocations: 7.906 kB / 356.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.895e-05/0.09515, allocations: 12.38 kB / 356.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.09516, allocations: 4 kB / 356.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.09517, allocations: 3.938 kB / 356.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.197e-06/0.09518, allocations: 3.984 kB / 356.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005265/0.09571, allocations: 444 kB / 356.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.09572, allocations: 0 / 356.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.09587, allocations: 31.98 kB / 356.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.09588, allocations: 0 / 356.6 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.0959, allocations: 7.984 kB / 356.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.09591, allocations: 4 kB / 356.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.09591, allocations: 3.984 kB / 356.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003286/0.09625, allocations: 253 kB / 356.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.044e-05/0.0963, allocations: 85.05 kB / 357 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.09633, allocations: 3.984 kB / 357 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.785e-05/0.09642, allocations: 8 kB / 357 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.875e-05/0.09646, allocations: 7.984 kB / 357 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.09648, allocations: 4 kB / 357 MB, free: 12.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.013e-05/0.09654, allocations: 95.27 kB / 357.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09655, allocations: 4.188 kB / 357.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.09684, allocations: 24 kB / 357.1 MB, free: 12.39 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.0001091/0.09695, allocations: 107.2 kB / 357.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002327/0.09719, allocations: 91.83 kB / 357.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.09721, allocations: 4 kB / 357.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.842e-05/0.09729, allocations: 43.86 kB / 357.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003788/0.09768, allocations: 12.58 kB / 357.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007636/0.09845, allocations: 489.1 kB / 357.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.09874, allocations: 0.7121 MB / 358.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.9e-05/0.0988, allocations: 12.89 kB / 358.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.584e-05/0.09884, allocations: 15.42 kB / 358.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.09885, allocations: 0 / 358.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of Templates: time 0.003015/0.1019, allocations: 0.7882 MB / 359.4 MB, free: 10.07 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