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.001467/0.001466, allocations: 109.8 kB / 17.06 MB, free: 6.016 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.001458/0.001458, allocations: 189.4 kB / 18 MB, free: 5.102 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.392/1.392, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 43.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2857, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003343/0.2891, allocations: 1.985 MB / 402.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007979/0.2899, allocations: 0.4986 MB / 402.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.536e-05/0.29, allocations: 4 kB / 402.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.694e-05/0.2901, allocations: 23.8 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.304e-05/0.2902, allocations: 39.62 kB / 402.8 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.2904, allocations: 39.89 kB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001742/0.2906, allocations: 147.5 kB / 403 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.2907, allocations: 69.5 kB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.258e-05/0.2908, allocations: 67.72 kB / 403.1 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.173e-05/0.2909, allocations: 67.69 kB / 403.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.758e-05/0.2909, allocations: 16 kB / 403.2 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.979e-05/0.291, allocations: 12 kB / 403.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.098e-05/0.291, allocations: 27.92 kB / 403.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.093e-05/0.2911, allocations: 75.66 kB / 403.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.2913, allocations: 166.4 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.2913, allocations: 8 kB / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2913, allocations: 0 / 403.4 MB, free: 5.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.2913, allocations: 0 / 403.4 MB, free: 5.586 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.0005058/0.2918, allocations: 442.8 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.512e-05/0.2918, allocations: 8.031 kB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.318e-05/0.2919, allocations: 54.67 kB / 403.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.048e-05/0.2919, allocations: 16.84 kB / 404 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.2921, allocations: 200.2 kB / 404.2 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.2921, allocations: 16.36 kB / 404.2 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.2922, allocations: 20.33 kB / 404.2 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.2924, allocations: 142.8 kB / 404.3 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.2925, allocations: 11.98 kB / 404.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.2925, allocations: 4 kB / 404.3 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.2925, allocations: 4 kB / 404.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001951/0.2927, allocations: 91.69 kB / 404.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000719/0.2934, allocations: 0.5328 MB / 405 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.2936, allocations: 78.48 kB / 405 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.269e-05/0.2937, allocations: 28.84 kB / 405.1 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.2937, allocations: 4 kB / 405.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.2937, allocations: 34.56 kB / 405.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.2937, allocations: 0 / 405.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.00102/0.2948, allocations: 0.5947 MB / 405.7 MB, free: 3.055 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.144e-05/0.2948, allocations: 63.33 kB / 405.8 MB, free: 2.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.2949, allocations: 129.8 kB / 405.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.295, allocations: 25.7 kB / 405.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.772e-05/0.2951, allocations: 140.1 kB / 406.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.706e-05/0.2951, allocations: 47.64 kB / 406.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-05/0.2951, allocations: 29.7 kB / 406.1 MB, free: 2.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2953, allocations: 326.8 kB / 406.5 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.597e-05/0.2954, allocations: 27.98 kB / 406.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.2955, allocations: 94.06 kB / 406.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.2957, allocations: 130.7 kB / 406.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2957, allocations: 4 kB / 406.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002647/0.296, allocations: 150.6 kB / 406.9 MB, free: 1.812 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.296, allocations: 8 kB / 406.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.296, allocations: 4 kB / 406.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.296, allocations: 0 / 406.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.2962, allocations: 51.84 kB / 406.9 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.2962, allocations: 0 / 406.9 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.492e-05/0.2963, allocations: 4.094 kB / 406.9 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.2963, allocations: 15.94 kB / 406.9 MB, free: 1.73 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 0.0001027/0.2964, allocations: 125.7 kB / 407.1 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.2965, allocations: 15.95 kB / 407.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.719e-05/0.2965, allocations: 16.36 kB / 407.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2965, allocations: 3.938 kB / 407.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.2965, allocations: 4 kB / 407.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.2965, allocations: 3.938 kB / 407.1 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005432/0.2971, allocations: 440 kB / 407.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2971, allocations: 0 / 407.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.2972, allocations: 36.05 kB / 407.6 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2972, allocations: 0 / 407.6 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.2973, allocations: 4 kB / 407.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.2973, allocations: 3.938 kB / 407.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2973, allocations: 0 / 407.6 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003326/0.2976, allocations: 253.1 kB / 407.8 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.589e-05/0.2977, allocations: 85.09 kB / 407.9 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.2977, allocations: 4 kB / 407.9 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.937e-05/0.2978, allocations: 4 kB / 407.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.774e-05/0.2978, allocations: 11.92 kB / 407.9 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.2978, allocations: 8 kB / 407.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.037e-05/0.2979, allocations: 99.2 kB / 408 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2979, allocations: 0 / 408 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002523/0.2982, allocations: 24 kB / 408.1 MB, free: 0.4961 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.0006468/0.2988, allocations: 0.7934 MB / 408.8 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000227/0.2991, allocations: 99.89 kB / 408.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2991, allocations: 0 / 408.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.78e-05/0.2992, allocations: 44.14 kB / 409 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.2995, allocations: 8 kB / 409 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.3016, allocations: 1.856 MB / 410.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.3019, allocations: 0.7119 MB / 411.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.49e-05/0.302, allocations: 12.88 kB / 411.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.487e-05/0.3021, allocations: 39.42 kB / 411.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3021, allocations: 4 kB / 411.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.332, allocations: 2.392 MB / 414 MB, free: 10.43 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.432/7.764, allocations: 11.86 kB / 414 MB, free: 10.42 MB / 334.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