Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007432/0.0007432, allocations: 94.47 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008543/0.0008543, allocations: 200.9 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 227.7 MB / 246.8 MB, free: 9.699 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000189/0.000189, allocations: 4 kB / 307.8 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07982/0.08002, allocations: 51.53 MB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.001781/0.08183, allocations: 1.702 MB / 361.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007775/0.08262, allocations: 0.5533 MB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.106e-05/0.0827, allocations: 4 kB / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.165e-05/0.08279, allocations: 15.84 kB / 361.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.827e-05/0.08287, allocations: 27.77 kB / 361.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001792/0.08305, allocations: 39.97 kB / 361.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.08321, allocations: 139.5 kB / 361.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.08336, allocations: 61.94 kB / 361.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.08349, allocations: 63.72 kB / 362 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.141e-05/0.08359, allocations: 59.7 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.285e-05/0.08362, allocations: 8 kB / 362 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.294e-05/0.08367, allocations: 8 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.511e-05/0.0837, allocations: 27.86 kB / 362.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.685e-05/0.08378, allocations: 93.34 kB / 362.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.08394, allocations: 155.6 kB / 362.3 MB, free: 10 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.08395, allocations: 4 kB / 362.3 MB, free: 10 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.08396, allocations: 0 / 362.3 MB, free: 10 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.08397, allocations: 0 / 362.3 MB, free: 10 MB / 302.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.0004786/0.08445, allocations: 415.2 kB / 362.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.0845, allocations: 11.97 kB / 362.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.434e-05/0.08455, allocations: 46.73 kB / 362.8 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.08468, allocations: 28.75 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.08486, allocations: 212.1 kB / 363 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.08488, allocations: 12.38 kB / 363 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/0.08492, allocations: 12.38 kB / 363 MB, free: 9.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002562/0.08518, allocations: 149.4 kB / 363.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.08521, allocations: 11.89 kB / 363.2 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.08522, allocations: 4 kB / 363.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.08523, allocations: 4 kB / 363.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001918/0.08543, allocations: 103.9 kB / 363.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007016/0.08614, allocations: 0.5365 MB / 363.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001437/0.0863, allocations: 78.55 kB / 363.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.03e-05/0.08637, allocations: 32.84 kB / 363.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.0864, allocations: 4.125 kB / 363.9 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.675e-05/0.08642, allocations: 34.56 kB / 364 MB, free: 8.148 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.08643, allocations: 0 / 364 MB, free: 8.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008769/0.08731, allocations: 0.5991 MB / 364.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/0.08735, allocations: 59.34 kB / 364.6 MB, free: 7.387 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.886e-05/0.08745, allocations: 130.1 kB / 364.8 MB, free: 7.246 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.08747, allocations: 29.98 kB / 364.8 MB, free: 7.211 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.39e-05/0.08754, allocations: 131.9 kB / 364.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.08757, allocations: 35.45 kB / 365 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.62e-05/0.08762, allocations: 25.64 kB / 365 MB, free: 7.012 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.16e-05/0.08771, allocations: 330.8 kB / 365.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.662e-05/0.0878, allocations: 35.92 kB / 365.3 MB, free: 6.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.0879, allocations: 89.19 kB / 365.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001783/0.08809, allocations: 134.7 kB / 365.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.0881, allocations: 0 / 365.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002488/0.08835, allocations: 157.4 kB / 365.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.08837, allocations: 4 kB / 365.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.08838, allocations: 0 / 365.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.0884, allocations: 7.984 kB / 365.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001458/0.08855, allocations: 52.05 kB / 365.8 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.08856, allocations: 0 / 365.8 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.81e-05/0.08864, allocations: 4 kB / 365.8 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.341e-05/0.08866, allocations: 12 kB / 365.8 MB, free: 6.141 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.713e-05/0.08875, allocations: 134.8 kB / 365.9 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.08878, allocations: 7.906 kB / 365.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.522e-05/0.08882, allocations: 16.7 kB / 365.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.08883, allocations: 7.938 kB / 366 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.08884, allocations: 4 kB / 366 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.08885, allocations: 48 / 366 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004787/0.08933, allocations: 452 kB / 366.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.08934, allocations: 96 / 366.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.08947, allocations: 35.98 kB / 366.4 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.08949, allocations: 0 / 366.4 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.0895, allocations: 0 / 366.4 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.08951, allocations: 4 kB / 366.4 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.08951, allocations: 0 / 366.4 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003177/0.08983, allocations: 264.8 kB / 366.7 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.343e-05/0.08988, allocations: 85.05 kB / 366.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.0899, allocations: 4 kB / 366.8 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.565e-05/0.08998, allocations: 4 kB / 366.8 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.089e-05/0.09002, allocations: 7.984 kB / 366.8 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.09003, allocations: 8 kB / 366.8 MB, free: 5.016 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.945e-05/0.09008, allocations: 98.56 kB / 366.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0901, allocations: 4 kB / 366.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.09035, allocations: 28 kB / 366.9 MB, free: 4.891 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.000492/0.09085, allocations: 0.7881 MB / 367.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000189/0.09105, allocations: 95.83 kB / 367.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.09106, allocations: 4 kB / 367.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.691e-05/0.09115, allocations: 44.48 kB / 367.9 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.09144, allocations: 11.38 kB / 367.9 MB, free: 3.918 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.09321, allocations: 1.984 MB / 369.9 MB, free: 1.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.09345, allocations: 0.716 MB / 370.6 MB, free: 1.055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.334e-05/0.09351, allocations: 12.88 kB / 370.6 MB, free: 1.039 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.701e-05/0.09357, allocations: 35.42 kB / 370.6 MB, free: 1.004 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.09358, allocations: 3.938 kB / 370.6 MB, free: 1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1468/0.2404, allocations: 2.103 MB / 372.7 MB, free: 18.67 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001303/0.2406, allocations: 205.2 kB / 372.9 MB, free: 18.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.582/1.822, allocations: 3.125 kB / 372.9 MB, free: 18.41 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,sineForce.f,sineForce.offset,sineForce.phase,sineForce.startTime,sineForce.y,speedSensor1.flange.f,speedSensor1.flange.s,speedSensor1.v,time