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.001316/0.001316, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001424, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.00119, allocations: 63.11 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08839/0.08959, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003061/0.09269, allocations: 1.991 MB / 359.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.0938, allocations: 0.5766 MB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.09395, allocations: 3.938 kB / 360.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.09411, allocations: 23.78 kB / 360.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.831e-05/0.0942, allocations: 35.7 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002334/0.09444, allocations: 55.86 kB / 360.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001707/0.09462, allocations: 143.5 kB / 360.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.09479, allocations: 74.59 kB / 360.5 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.09495, allocations: 75.72 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.09507, allocations: 67.69 kB / 360.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.0951, allocations: 16 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.418e-05/0.09516, allocations: 16 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.052e-05/0.0952, allocations: 35.84 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.362e-05/0.09528, allocations: 71.67 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.09548, allocations: 167.7 kB / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.09549, allocations: 0 / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.0955, allocations: 0 / 360.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.09551, allocations: 0 / 360.9 MB, free: 10.67 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.0006187/0.09613, allocations: 443 kB / 361.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.09618, allocations: 12.03 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.011e-05/0.09624, allocations: 46.73 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.09638, allocations: 28.67 kB / 361.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.09657, allocations: 208.1 kB / 361.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.09659, allocations: 12.38 kB / 361.6 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/0.09663, allocations: 16.38 kB / 361.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.09689, allocations: 141.5 kB / 361.8 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.09691, allocations: 8 kB / 361.8 MB, free: 9.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.09693, allocations: 4 kB / 361.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.09694, allocations: 4 kB / 361.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.09714, allocations: 87.94 kB / 361.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007682/0.09791, allocations: 0.5365 MB / 362.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.09812, allocations: 78.48 kB / 362.5 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.749e-05/0.0982, allocations: 36.84 kB / 362.6 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.09822, allocations: 0 / 362.6 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.09825, allocations: 30.56 kB / 362.6 MB, free: 8.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 9.41e-07/0.09826, allocations: 3.938 kB / 362.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009013/0.09916, allocations: 0.5985 MB / 363.2 MB, free: 8.129 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.09922, allocations: 59.28 kB / 363.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.09932, allocations: 132.8 kB / 363.4 MB, free: 7.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.09935, allocations: 29.7 kB / 363.4 MB, free: 7.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.498e-05/0.09943, allocations: 132 kB / 363.5 MB, free: 7.746 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.845e-05/0.09946, allocations: 35.45 kB / 363.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.09952, allocations: 37.62 kB / 363.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.09963, allocations: 330.8 kB / 363.9 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.537e-05/0.09971, allocations: 27.98 kB / 363.9 MB, free: 7.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.663e-05/0.09981, allocations: 82.84 kB / 364 MB, free: 7.203 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000274/0.1001, allocations: 131.8 kB / 364.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1001, allocations: 0 / 364.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002606/0.1004, allocations: 165.3 kB / 364.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.1004, allocations: 4 kB / 364.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1004, allocations: 4 kB / 364.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.1004, allocations: 0 / 364.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.1006, allocations: 43.86 kB / 364.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.1006, allocations: 0 / 364.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.105e-05/0.1007, allocations: 11.98 kB / 364.4 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.1007, allocations: 8 kB / 364.4 MB, free: 6.812 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.876e-05/0.1008, allocations: 133.8 kB / 364.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.902e-05/0.1008, allocations: 15.91 kB / 364.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.27e-05/0.1009, allocations: 12.72 kB / 364.5 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.1009, allocations: 3.938 kB / 364.6 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1009, allocations: 0 / 364.6 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.1009, allocations: 7.984 kB / 364.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005097/0.1014, allocations: 447.9 kB / 365 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1014, allocations: 0 / 365 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/0.1015, allocations: 23.98 kB / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1015, allocations: 0 / 365 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.1016, allocations: 4 kB / 365 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/0.1016, allocations: 3.938 kB / 365 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1016, allocations: 0 / 365 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.1019, allocations: 253.1 kB / 365.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.072e-05/0.1019, allocations: 89.03 kB / 365.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.102, allocations: 4 kB / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.965e-05/0.1021, allocations: 4 kB / 365.4 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.1021, allocations: 11.92 kB / 365.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.1022, allocations: 8.062 kB / 365.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.333e-05/0.1023, allocations: 99.27 kB / 365.5 MB, free: 5.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1023, allocations: 0 / 365.5 MB, free: 5.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.1026, allocations: 28 kB / 365.5 MB, free: 5.574 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.0005218/0.1031, allocations: 0.7923 MB / 366.3 MB, free: 4.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002084/0.1033, allocations: 95.81 kB / 366.4 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1033, allocations: 0 / 366.4 MB, free: 4.652 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.398e-05/0.1034, allocations: 39.92 kB / 366.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.1037, allocations: 23.45 kB / 366.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.1058, allocations: 1.851 MB / 368.3 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.1061, allocations: 0.7119 MB / 369 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.762e-05/0.1062, allocations: 12.88 kB / 369 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.43e-05/0.1062, allocations: 39.42 kB / 369.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1062, allocations: 0 / 369.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3765/0.4827, allocations: 2.351 MB / 371.4 MB, free: 19.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/8.181, allocations: 7.797 kB / 371.4 MB, free: 19.93 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