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.001167/0.001167, allocations: 106 kB / 17.06 MB, free: 5.82 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.001178/0.001178, allocations: 195.9 kB / 18 MB, free: 4.977 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.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 43.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2698, allocations: 49.44 MB / 400.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003121/0.273, allocations: 1.974 MB / 402.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00075/0.2737, allocations: 0.5025 MB / 402.7 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.086e-05/0.2738, allocations: 4 kB / 402.7 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.274, allocations: 27.72 kB / 402.7 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.524e-05/0.274, allocations: 35.7 kB / 402.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002016/0.2743, allocations: 39.89 kB / 402.8 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000188/0.2745, allocations: 151.4 kB / 402.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.2746, allocations: 65.53 kB / 403 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.2747, allocations: 67.77 kB / 403.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.2749, allocations: 63.7 kB / 403.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.649e-05/0.2749, allocations: 16 kB / 403.2 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.284e-05/0.2749, allocations: 12 kB / 403.2 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.275, allocations: 39.89 kB / 403.2 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.802e-05/0.275, allocations: 71.67 kB / 403.3 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001837/0.2752, allocations: 165 kB / 403.4 MB, free: 5.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2752, allocations: 0 / 403.4 MB, free: 5.707 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2752, allocations: 4 kB / 403.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.2752, allocations: 0 / 403.4 MB, free: 5.703 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.0005679/0.2758, allocations: 443 kB / 403.9 MB, free: 5.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2759, allocations: 12.03 kB / 403.9 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.395e-05/0.2759, allocations: 50.73 kB / 403.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.276, allocations: 16.75 kB / 404 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000215/0.2762, allocations: 200.1 kB / 404.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.2762, allocations: 16.38 kB / 404.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.607e-05/0.2762, allocations: 12.38 kB / 404.2 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002543/0.2765, allocations: 146.6 kB / 404.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.2765, allocations: 4 kB / 404.3 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.2765, allocations: 8 kB / 404.3 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2766, allocations: 4 kB / 404.3 MB, free: 4.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.2767, allocations: 99.62 kB / 404.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006762/0.2774, allocations: 0.5287 MB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001536/0.2776, allocations: 82.53 kB / 405 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.188e-05/0.2777, allocations: 28.84 kB / 405.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.2777, allocations: 4 kB / 405.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.2777, allocations: 34.56 kB / 405.1 MB, free: 3.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.102e-06/0.2777, allocations: 0 / 405.1 MB, free: 3.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009026/0.2786, allocations: 0.6061 MB / 405.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.765e-05/0.2787, allocations: 51.41 kB / 405.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.828e-05/0.2788, allocations: 133.8 kB / 405.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.2788, allocations: 25.7 kB / 405.9 MB, free: 2.926 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.2789, allocations: 132 kB / 406 MB, free: 2.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.744e-05/0.2789, allocations: 39.47 kB / 406.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.741e-05/0.279, allocations: 33.61 kB / 406.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.2791, allocations: 326.8 kB / 406.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.617e-05/0.2791, allocations: 31.98 kB / 406.5 MB, free: 2.355 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.835e-05/0.2793, allocations: 90.73 kB / 406.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001822/0.2794, allocations: 131.8 kB / 406.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2795, allocations: 0 / 406.7 MB, free: 2.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002464/0.2797, allocations: 161.4 kB / 406.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.2797, allocations: 4 kB / 406.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2797, allocations: 4.094 kB / 406.9 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.2798, allocations: 7.875 kB / 406.9 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.2799, allocations: 40.03 kB / 406.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.2799, allocations: 3.938 kB / 406.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.925e-05/0.28, allocations: 7.984 kB / 406.9 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.28, allocations: 11.98 kB / 406.9 MB, free: 1.848 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 8.717e-05/0.2801, allocations: 130 kB / 407 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.2801, allocations: 7.906 kB / 407.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.003e-05/0.2802, allocations: 12.38 kB / 407.1 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.2802, allocations: 3.938 kB / 407.1 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2802, allocations: 0 / 407.1 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.2802, allocations: 7.938 kB / 407.1 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000484/0.2807, allocations: 447.9 kB / 407.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.2807, allocations: 0 / 407.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.2809, allocations: 31.92 kB / 407.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.2809, allocations: 0 / 407.5 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.2809, allocations: 4 kB / 407.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.2809, allocations: 0 / 407.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2809, allocations: 3.984 kB / 407.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003092/0.2812, allocations: 249.1 kB / 407.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.2813, allocations: 85.05 kB / 407.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.2813, allocations: 8 kB / 407.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.561e-05/0.2814, allocations: 7.984 kB / 407.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.308e-05/0.2814, allocations: 4 kB / 407.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.2814, allocations: 8 kB / 407.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.4e-05/0.2815, allocations: 107.2 kB / 408 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2815, allocations: 0 / 408 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002631/0.2818, allocations: 24 kB / 408 MB, free: 0.6172 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.00053/0.2823, allocations: 0.7803 MB / 408.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002165/0.2825, allocations: 99.86 kB / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2825, allocations: 0 / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.737e-05/0.2826, allocations: 35.92 kB / 409 MB, free: 15.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.2829, allocations: 16.55 kB / 409 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.2848, allocations: 1.853 MB / 410.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.285, allocations: 0.7119 MB / 411.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.415e-05/0.2851, allocations: 12.88 kB / 411.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.286e-05/0.2852, allocations: 43.42 kB / 411.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2852, allocations: 0 / 411.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.305, allocations: 2.404 MB / 414 MB, free: 10.56 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.1/7.405, allocations: 14.61 kB / 414 MB, free: 10.55 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