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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_2_3_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.0007695/0.0007696, allocations: 96.86 kB / 17.3 MB, free: 6.344 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.0008252/0.0008253, allocations: 177.5 kB / 18.21 MB, free: 5.531 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.216/1.216, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0004253/0.0004253, allocations: 8.516 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07479/0.07522, allocations: 47.58 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.00196/0.07722, allocations: 1.67 MB / 330.7 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006958/0.07793, allocations: 0.5308 MB / 331.3 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.184e-05/0.07801, allocations: 4 kB / 331.3 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.937e-05/0.0781, allocations: 15.86 kB / 331.3 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.054e-05/0.07817, allocations: 15.84 kB / 331.3 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001574/0.07833, allocations: 43.89 kB / 331.3 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.07853, allocations: 147.4 kB / 331.5 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.07868, allocations: 58.22 kB / 331.5 MB, free: 1.164 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.0788, allocations: 47.86 kB / 331.6 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.37e-05/0.07891, allocations: 63.69 kB / 331.6 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.84e-05/0.07893, allocations: 4 kB / 331.6 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.837e-05/0.07895, allocations: 8 kB / 331.7 MB, free: 1.043 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.579e-05/0.07899, allocations: 27.86 kB / 331.7 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.763e-05/0.07906, allocations: 93.38 kB / 331.8 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.07922, allocations: 155.3 kB / 331.9 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.07923, allocations: 0 / 331.9 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.07923, allocations: 0 / 331.9 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.576e-06/0.07924, allocations: 0 / 331.9 MB, free: 0.7656 MB / 270.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.0004624/0.07971, allocations: 415.1 kB / 332.3 MB, free: 320 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.07975, allocations: 16.03 kB / 332.3 MB, free: 304 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.117e-05/0.0798, allocations: 50.67 kB / 332.4 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.333e-05/0.07984, allocations: 16.75 kB / 332.4 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.08002, allocations: 200.2 kB / 332.6 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.08004, allocations: 12.38 kB / 332.6 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.048e-05/0.08009, allocations: 20.28 kB / 332.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.08035, allocations: 149.2 kB / 332.8 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.08037, allocations: 0 / 332.8 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.08039, allocations: 8 kB / 332.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.728e-06/0.0804, allocations: 4 kB / 332.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.08064, allocations: 95.94 kB / 332.9 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007104/0.08136, allocations: 0.5287 MB / 333.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.08153, allocations: 82.48 kB / 333.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.884e-05/0.0816, allocations: 36.78 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.08163, allocations: 7.984 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.08165, allocations: 30.56 kB / 333.6 MB, free: 14.94 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 1.082e-06/0.08166, allocations: 0 / 333.6 MB, free: 14.94 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008664/0.08253, allocations: 0.611 MB / 334.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.08257, allocations: 59.34 kB / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.109e-05/0.08267, allocations: 129.4 kB / 334.4 MB, free: 14.03 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.08269, allocations: 33.7 kB / 334.4 MB, free: 13.99 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.08281, allocations: 128 kB / 334.5 MB, free: 13.86 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.08285, allocations: 43.38 kB / 334.6 MB, free: 13.82 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.08289, allocations: 29.7 kB / 334.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.503e-05/0.08299, allocations: 322.8 kB / 334.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.231e-05/0.08306, allocations: 28.17 kB / 334.9 MB, free: 13.43 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.08318, allocations: 94.8 kB / 335 MB, free: 13.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.08342, allocations: 134.7 kB / 335.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.08343, allocations: 3.938 kB / 335.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002411/0.08368, allocations: 153.4 kB / 335.3 MB, free: 13 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.0837, allocations: 8 kB / 335.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.08371, allocations: 3.984 kB / 335.3 MB, free: 12.99 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.08373, allocations: 12.17 kB / 335.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.08391, allocations: 43.86 kB / 335.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.08392, allocations: 4 kB / 335.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.404e-05/0.08399, allocations: 4 kB / 335.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.08401, allocations: 12 kB / 335.4 MB, free: 12.91 MB / 286.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 7.883e-05/0.08409, allocations: 121.8 kB / 335.5 MB, free: 12.79 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.08413, allocations: 7.906 kB / 335.5 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.08417, allocations: 20.36 kB / 335.5 MB, free: 12.76 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.08417, allocations: 7.938 kB / 335.6 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.08418, allocations: 0 / 335.6 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.08419, allocations: 0 / 335.6 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004646/0.08466, allocations: 448 kB / 336 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.08467, allocations: 4.062 kB / 336 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.08481, allocations: 27.98 kB / 336 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.08482, allocations: 3.938 kB / 336 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.08483, allocations: 4.188 kB / 336 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.08484, allocations: 0 / 336 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.08484, allocations: 3.938 kB / 336 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.08515, allocations: 261 kB / 336.3 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.602e-05/0.08519, allocations: 84.92 kB / 336.4 MB, free: 11.83 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.08522, allocations: 8.031 kB / 336.4 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.759e-05/0.0853, allocations: 4 kB / 336.4 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.124e-05/0.08534, allocations: 11.92 kB / 336.4 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.08535, allocations: 12.06 kB / 336.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.583e-05/0.08544, allocations: 91.27 kB / 336.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08545, allocations: 4 kB / 336.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002409/0.08569, allocations: 24 kB / 336.5 MB, free: 11.68 MB / 286.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.0005572/0.08626, allocations: 0.7881 MB / 337.3 MB, free: 10.85 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001962/0.08646, allocations: 91.83 kB / 337.4 MB, free: 10.76 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.08648, allocations: 8.438 kB / 337.4 MB, free: 10.75 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.543e-05/0.08656, allocations: 39.92 kB / 337.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.08684, allocations: 12 kB / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.0887, allocations: 1.974 MB / 339.4 MB, free: 8.602 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.08895, allocations: 0.716 MB / 340.2 MB, free: 7.859 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.056e-05/0.08901, allocations: 4.891 kB / 340.2 MB, free: 7.852 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.82e-05/0.08907, allocations: 43.8 kB / 340.2 MB, free: 7.809 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08907, allocations: 0 / 340.2 MB, free: 7.809 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1372/0.2263, allocations: 2.085 MB / 342.3 MB, free: 5.73 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/0.2266, allocations: 201.8 kB / 342.5 MB, free: 5.473 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.945/2.172, allocations: 3.938 kB / 342.5 MB, free: 5.469 MB / 286.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_3.2.3_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.freqHz,sineForce.offset,sineForce.phase,sineForce.startTime,sineForce.y,speedSensor1.flange.f,speedSensor1.flange.s,speedSensor1.v,time