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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.00127/0.00127, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.285/1.285, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001024/0.001024, allocations: 47.33 kB / 300.1 MB, free: 5.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07688/0.07792, allocations: 49.44 MB / 349.5 MB, free: 4.523 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002636/0.08059, allocations: 2.032 MB / 351.5 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006126/0.08121, allocations: 0.4909 MB / 352 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.197e-05/0.0813, allocations: 0 / 352 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001003/0.08141, allocations: 15.86 kB / 352 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.423e-05/0.08148, allocations: 35.77 kB / 352.1 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001533/0.08164, allocations: 35.97 kB / 352.1 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.0818, allocations: 135.5 kB / 352.3 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.08193, allocations: 57.95 kB / 352.3 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.088e-05/0.08202, allocations: 59.78 kB / 352.4 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.654e-05/0.08213, allocations: 71.69 kB / 352.4 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.08216, allocations: 8 kB / 352.4 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.382e-05/0.08219, allocations: 12 kB / 352.5 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.043e-05/0.08222, allocations: 27.91 kB / 352.5 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.192e-05/0.08229, allocations: 71.55 kB / 352.6 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001481/0.08244, allocations: 159.7 kB / 352.7 MB, free: 1.297 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.08245, allocations: 0 / 352.7 MB, free: 1.297 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.08245, allocations: 0 / 352.7 MB, free: 1.297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.08246, allocations: 4 kB / 352.7 MB, free: 1.293 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.0005126/0.08298, allocations: 443.1 kB / 353.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.08302, allocations: 8.031 kB / 353.2 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.668e-05/0.08307, allocations: 54.73 kB / 353.2 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/0.08311, allocations: 16.69 kB / 353.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.08328, allocations: 204.1 kB / 353.4 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.0833, allocations: 12.38 kB / 353.4 MB, free: 488 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.08333, allocations: 16.38 kB / 353.5 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.08358, allocations: 142.4 kB / 353.6 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.08361, allocations: 3.906 kB / 353.6 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.08363, allocations: 8 kB / 353.6 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.08364, allocations: 4 kB / 353.6 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.08383, allocations: 99.38 kB / 353.7 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006785/0.08452, allocations: 0.529 MB / 354.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.08467, allocations: 74.55 kB / 354.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.914e-05/0.08474, allocations: 28.84 kB / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.08476, allocations: 8 kB / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.692e-05/0.08479, allocations: 30.56 kB / 354.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.08479, allocations: 0 / 354.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008531/0.08565, allocations: 0.5915 MB / 355 MB, free: 14.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.08569, allocations: 67.34 kB / 355 MB, free: 14.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.207e-05/0.08579, allocations: 121.8 kB / 355.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.08581, allocations: 29.7 kB / 355.2 MB, free: 14.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.058e-05/0.08587, allocations: 135.9 kB / 355.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.279e-05/0.08591, allocations: 43.39 kB / 355.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.605e-05/0.08596, allocations: 37.84 kB / 355.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.001e-05/0.08606, allocations: 322.8 kB / 355.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.025e-05/0.08614, allocations: 39.92 kB / 355.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.85e-05/0.08624, allocations: 82.78 kB / 355.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.08641, allocations: 122.8 kB / 355.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.08642, allocations: 7.938 kB / 355.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000235/0.08666, allocations: 153.5 kB / 356.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.08668, allocations: 7.984 kB / 356.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.08669, allocations: 4 kB / 356.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.0867, allocations: 4 kB / 356.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.08685, allocations: 39.92 kB / 356.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.08686, allocations: 3.938 kB / 356.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.781e-05/0.08693, allocations: 4 kB / 356.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.08695, allocations: 12 kB / 356.2 MB, free: 13.46 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.591e-05/0.08704, allocations: 125.9 kB / 356.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.08708, allocations: 15.89 kB / 356.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.088e-05/0.08711, allocations: 12.38 kB / 356.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.08713, allocations: 7.938 kB / 356.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.08713, allocations: 3.938 kB / 356.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.08714, allocations: 0 / 356.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004693/0.08761, allocations: 447.9 kB / 356.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.08762, allocations: 0 / 356.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.08775, allocations: 28.11 kB / 356.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.08776, allocations: 0 / 356.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.08778, allocations: 7.938 kB / 356.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.08778, allocations: 0 / 356.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.08779, allocations: 0 / 356.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/0.08809, allocations: 253.1 kB / 357.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.789e-05/0.08814, allocations: 96.98 kB / 357.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.08816, allocations: 4 kB / 357.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.923e-05/0.08825, allocations: 0 / 357.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.423e-05/0.08829, allocations: 11.98 kB / 357.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.0883, allocations: 7.938 kB / 357.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.581e-05/0.08836, allocations: 98.84 kB / 357.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08836, allocations: 4 kB / 357.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002499/0.08862, allocations: 28 kB / 357.3 MB, free: 12.21 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.0004951/0.08912, allocations: 0.7906 MB / 358.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001898/0.08932, allocations: 91.83 kB / 358.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.08933, allocations: 0 / 358.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.333e-05/0.08941, allocations: 39.92 kB / 358.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.08969, allocations: 12 kB / 358.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.0916, allocations: 1.894 MB / 360.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.09186, allocations: 0.716 MB / 360.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.035e-05/0.09192, allocations: 9.25 kB / 360.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.135e-05/0.092, allocations: 47.42 kB / 360.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of SimCode: time 1.193e-06/0.09201, allocations: 0 / 360.9 MB, free: 8.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1809/0.2729, allocations: 2.162 MB / 363.1 MB, free: 6.355 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/0.2731, allocations: 198.8 kB / 363.3 MB, free: 6.102 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.087, allocations: 0 / 363.3 MB, free: 6.102 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mass.s,mass.v Variables in the result:accSensor1.a,accSensor1.flange.f,accSensor1.flange.s,accSensor1.v,der(accSensor1.v),der(mass.s),der(mass.v),der(multiSensor.flange_a.s),force.f,force.flange.f,force.flange.s,force.s,force.useSupport,forceSensor.f,forceSensor.flange_a.f,forceSensor.flange_a.s,forceSensor.flange_b.f,forceSensor.flange_b.s,mass.L,mass.a,mass.flange_a.f,mass.flange_a.s,mass.flange_b.f,mass.flange_b.s,mass.m,mass.s,mass.stateSelect,mass.v,multiSensor.f,multiSensor.flange_a.f,multiSensor.flange_a.s,multiSensor.flange_b.f,multiSensor.flange_b.s,multiSensor.power,multiSensor.v,positionSensor1.flange.f,positionSensor1.flange.s,positionSensor1.s,positionSensor2.flange.f,positionSensor2.flange.s,positionSensor2.s,sineForce.amplitude,sineForce.f,sineForce.offset,sineForce.phase,sineForce.startTime,sineForce.y,speedSensor1.flange.f,speedSensor1.flange.s,speedSensor1.v,time