Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001131/0.001131, allocations: 109.3 kB / 17.73 MB, free: 5.32 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.001075/0.001075, allocations: 188.2 kB / 18.66 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 51.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/0.09572, allocations: 46.62 MB / 375.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003884/0.09965, allocations: 1.96 MB / 377.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.1008, allocations: 0.55 MB / 377.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001469/0.1009, allocations: 4 kB / 377.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.1011, allocations: 23.73 kB / 377.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.1012, allocations: 31.7 kB / 377.7 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.1015, allocations: 35.95 kB / 377.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002245/0.1017, allocations: 155.4 kB / 377.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.1019, allocations: 73.34 kB / 378 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.1021, allocations: 67.78 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.1022, allocations: 67.69 kB / 378.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.213e-05/0.1022, allocations: 16 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.787e-05/0.1023, allocations: 12 kB / 378.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.134e-05/0.1023, allocations: 35.86 kB / 378.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.279e-05/0.1024, allocations: 71.67 kB / 378.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002225/0.1026, allocations: 171.4 kB / 378.4 MB, free: 1.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.1027, allocations: 4 kB / 378.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1027, allocations: 0 / 378.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.1027, allocations: 0 / 378.4 MB, free: 1.293 MB / 318.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.0006968/0.1034, allocations: 435 kB / 378.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/0.1035, allocations: 12.03 kB / 378.8 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.16e-05/0.1035, allocations: 20.75 kB / 378.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000381/0.1039, allocations: 200.2 kB / 379 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.1039, allocations: 12.38 kB / 379.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.205e-05/0.104, allocations: 16.28 kB / 379.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003646/0.1044, allocations: 145.7 kB / 379.2 MB, free: 388 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.1044, allocations: 4 kB / 379.2 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.725e-05/0.1044, allocations: 11.94 kB / 379.2 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1045, allocations: 7.938 kB / 379.2 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002343/0.1047, allocations: 95.92 kB / 379.3 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.216/0.3207, allocations: 0.5088 MB / 379.8 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.321, allocations: 80.02 kB / 379.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.571e-05/0.3211, allocations: 30.72 kB / 380 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.3211, allocations: 3.719 kB / 380 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.76e-05/0.3211, allocations: 34.84 kB / 380 MB, free: 12.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 2.315e-06/0.3211, allocations: 0 / 380 MB, free: 12.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009606/0.3221, allocations: 0.5963 MB / 380.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.3222, allocations: 52.78 kB / 380.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.3223, allocations: 130 kB / 380.8 MB, free: 12.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.029e-05/0.3223, allocations: 25.7 kB / 380.8 MB, free: 12.24 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.106e-05/0.3224, allocations: 136.2 kB / 380.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.3224, allocations: 43.28 kB / 381 MB, free: 12.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.3224, allocations: 33.39 kB / 381 MB, free: 12.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.774e-05/0.3225, allocations: 331.1 kB / 381.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.527e-05/0.3226, allocations: 28.7 kB / 381.3 MB, free: 11.78 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.3227, allocations: 89.89 kB / 381.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.3229, allocations: 130.9 kB / 381.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.3229, allocations: 0 / 381.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002459/0.3231, allocations: 153.6 kB / 381.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3232, allocations: 6.531 kB / 381.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.3232, allocations: 5.25 kB / 381.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.3232, allocations: 4.672 kB / 381.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.3234, allocations: 39.92 kB / 381.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3234, allocations: 4.531 kB / 381.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.144e-05/0.3235, allocations: 11.16 kB / 381.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.3235, allocations: 5.531 kB / 381.8 MB, free: 11.6 MB / 318.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 6.98e-05/0.3236, allocations: 130.9 kB / 381.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.3236, allocations: 13.55 kB / 381.9 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.621e-05/0.3236, allocations: 19.36 kB / 381.9 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3236, allocations: 8.75 kB / 382 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3237, allocations: 1.266 kB / 382 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3237, allocations: 0 / 382 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004475/0.3241, allocations: 442.6 kB / 382.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3241, allocations: 3.969 kB / 382.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.3243, allocations: 27.45 kB / 382.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.3243, allocations: 1.375 kB / 382.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.3243, allocations: 1.375 kB / 382.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.3243, allocations: 7 kB / 382.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.3243, allocations: 1.375 kB / 382.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002778/0.3246, allocations: 251.1 kB / 382.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.427e-05/0.3246, allocations: 85.03 kB / 382.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.3246, allocations: 1.688 kB / 382.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.754e-05/0.3247, allocations: 3.516 kB / 382.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/0.3248, allocations: 10.91 kB / 382.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.3248, allocations: 3.766 kB / 382.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.391e-05/0.3249, allocations: 103.8 kB / 382.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3249, allocations: 4 kB / 382.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000301/0.3252, allocations: 26.75 kB / 382.9 MB, free: 10.8 MB / 318.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.0001087/0.3253, allocations: 105.2 kB / 383 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002595/0.3256, allocations: 92.34 kB / 383.1 MB, free: 10.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3256, allocations: 0 / 383.1 MB, free: 10.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.43e-05/0.3257, allocations: 41.41 kB / 383.1 MB, free: 10.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.326, allocations: 16.2 kB / 383.2 MB, free: 10.69 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008026/0.3268, allocations: 415.6 kB / 383.6 MB, free: 10.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001746/0.327, allocations: 0.7142 MB / 384.3 MB, free: 9.723 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.849e-05/0.3271, allocations: 13.53 kB / 384.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.658e-05/0.3271, allocations: 13.62 kB / 384.3 MB, free: 9.707 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3271, allocations: 4 kB / 384.3 MB, free: 9.703 MB / 318.1 MB Notification: Performance of Templates: time 0.003577/0.3307, allocations: 0.8774 MB / 385.2 MB, free: 9.633 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches