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.001344/0.001344, allocations: 112.1 kB / 16.62 MB, free: 6.812 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.001362/0.001362, allocations: 186 kB / 17.55 MB, free: 5.934 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.24/1.24, allocations: 222.9 MB / 241.2 MB, free: 15.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 55.44 kB / 300.2 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07871/0.07987, allocations: 49.44 MB / 349.7 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002677/0.08257, allocations: 2.024 MB / 351.7 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006859/0.08328, allocations: 0.4948 MB / 352.2 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.033e-05/0.08338, allocations: 4 kB / 352.2 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.978e-05/0.0835, allocations: 15.86 kB / 352.2 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.134e-05/0.08358, allocations: 27.77 kB / 352.3 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.08375, allocations: 31.97 kB / 352.3 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.08391, allocations: 147.5 kB / 352.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.08406, allocations: 73.38 kB / 352.5 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.526e-05/0.08416, allocations: 71.7 kB / 352.6 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.2e-05/0.08426, allocations: 67.7 kB / 352.6 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.21e-05/0.08429, allocations: 12 kB / 352.6 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.156e-05/0.08432, allocations: 16 kB / 352.7 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.815e-05/0.08435, allocations: 27.92 kB / 352.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.095e-05/0.08441, allocations: 71.66 kB / 352.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001518/0.08457, allocations: 163.7 kB / 352.9 MB, free: 1.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.08458, allocations: 4 kB / 352.9 MB, free: 1.375 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.08459, allocations: 0 / 352.9 MB, free: 1.375 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.0846, allocations: 0 / 352.9 MB, free: 1.375 MB / 286.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.0004802/0.08508, allocations: 443 kB / 353.4 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.08513, allocations: 12.03 kB / 353.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.508e-05/0.08518, allocations: 54.73 kB / 353.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.22e-05/0.08522, allocations: 16.75 kB / 353.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.08538, allocations: 204.1 kB / 353.6 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.0854, allocations: 12.38 kB / 353.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.08543, allocations: 20.38 kB / 353.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.08569, allocations: 138.3 kB / 353.8 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.08571, allocations: 7.906 kB / 353.8 MB, free: 396 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.08573, allocations: 4 kB / 353.8 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.08574, allocations: 4 kB / 353.8 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.08592, allocations: 95.44 kB / 353.9 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006585/0.08659, allocations: 0.5251 MB / 354.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.08673, allocations: 86.47 kB / 354.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.02e-05/0.0868, allocations: 32.84 kB / 354.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.483e-05/0.08682, allocations: 3.984 kB / 354.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.08685, allocations: 34.69 kB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.08685, allocations: 0 / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008188/0.08768, allocations: 0.6022 MB / 355.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.08771, allocations: 55.34 kB / 355.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.415e-05/0.0878, allocations: 125.8 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.08782, allocations: 29.7 kB / 355.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.877e-05/0.08789, allocations: 131.9 kB / 355.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.08792, allocations: 43.39 kB / 355.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.559e-05/0.08797, allocations: 37.7 kB / 355.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.06e-05/0.08806, allocations: 318.8 kB / 355.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.026e-05/0.08813, allocations: 35.94 kB / 356 MB, free: 14.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.11e-05/0.08823, allocations: 89.7 kB / 356 MB, free: 13.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.0884, allocations: 127.8 kB / 356.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.08841, allocations: 4 kB / 356.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002251/0.08864, allocations: 157.3 kB / 356.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.08866, allocations: 11.98 kB / 356.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.08867, allocations: 0 / 356.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.08869, allocations: 4 kB / 356.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.08883, allocations: 39.86 kB / 356.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.08885, allocations: 7.984 kB / 356.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.462e-05/0.08892, allocations: 8.188 kB / 356.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.08893, allocations: 8 kB / 356.4 MB, free: 13.52 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 7.746e-05/0.08902, allocations: 121.8 kB / 356.5 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.08905, allocations: 15.83 kB / 356.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.032e-05/0.08908, allocations: 12.38 kB / 356.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.08909, allocations: 7.938 kB / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.0891, allocations: 0 / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.08911, allocations: 0 / 356.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004355/0.08955, allocations: 447.9 kB / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.08957, allocations: 0 / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.08969, allocations: 23.98 kB / 357 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.08971, allocations: 4 kB / 357 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.415e-06/0.08972, allocations: 3.938 kB / 357 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.08973, allocations: 8 kB / 357 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.08973, allocations: 4.062 kB / 357 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002664/0.09, allocations: 253 kB / 357.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.329e-05/0.09005, allocations: 84.95 kB / 357.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.09008, allocations: 4 kB / 357.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.07e-05/0.09016, allocations: 8.062 kB / 357.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.812e-05/0.0902, allocations: 11.98 kB / 357.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.0902, allocations: 0 / 357.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.652e-05/0.09026, allocations: 98.5 kB / 357.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09026, allocations: 0 / 357.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002465/0.09051, allocations: 28.19 kB / 357.5 MB, free: 12.3 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.0004704/0.09099, allocations: 0.7919 MB / 358.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001873/0.09119, allocations: 95.83 kB / 358.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.0912, allocations: 448 / 358.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.875e-05/0.09127, allocations: 43.92 kB / 358.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.09156, allocations: 11.94 kB / 358.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001808/0.09338, allocations: 1.911 MB / 360.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.09368, allocations: 0.708 MB / 361.1 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.553e-05/0.09375, allocations: 16.88 kB / 361.1 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.143e-05/0.09381, allocations: 43.36 kB / 361.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09382, allocations: 0 / 361.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/0.2242, allocations: 2.21 MB / 363.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002934/0.2245, allocations: 206.6 kB / 363.5 MB, free: 6.137 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.103, allocations: 0 / 363.5 MB, free: 6.137 MB / 302.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