Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009501/0.0009501, allocations: 196.1 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 226.5 MB / 244.7 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007938/0.0007937, allocations: 95.61 kB / 296.7 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002132/0.0002132, allocations: 8 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1823, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.001478/0.1838, allocations: 1.651 MB / 409.8 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005667/0.1844, allocations: 0.5132 MB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.218e-05/0.1844, allocations: 6.531 kB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.577e-05/0.1845, allocations: 7.922 kB / 410.3 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.44e-05/0.1846, allocations: 27.77 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.1847, allocations: 39.91 kB / 410.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001253/0.1849, allocations: 136 kB / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.185, allocations: 56.28 kB / 410.6 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.1851, allocations: 51.86 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.088e-05/0.1852, allocations: 61.75 kB / 410.7 MB, free: 25.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.1852, allocations: 8 kB / 410.7 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.002e-05/0.1853, allocations: 12 kB / 410.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.858e-05/0.1853, allocations: 23.92 kB / 410.7 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.881e-05/0.1853, allocations: 81.44 kB / 410.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.1855, allocations: 128.9 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1855, allocations: 4.578 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1855, allocations: 3.281 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.1855, allocations: 0 / 410.9 MB, free: 24.89 MB / 298.7 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.000385/0.1859, allocations: 422.7 kB / 411.3 MB, free: 24.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.1859, allocations: 8.031 kB / 411.3 MB, free: 24.42 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.143e-05/0.1859, allocations: 50.73 kB / 411.4 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.1861, allocations: 28.75 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.1862, allocations: 200.1 kB / 411.6 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-06/0.1862, allocations: 8.375 kB / 411.6 MB, free: 24.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.925e-05/0.1863, allocations: 24.36 kB / 411.6 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002258/0.1865, allocations: 142.4 kB / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.1865, allocations: 0 / 411.8 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.1865, allocations: 8 kB / 411.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.1865, allocations: 4 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001636/0.1867, allocations: 103.6 kB / 411.9 MB, free: 23.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005363/0.1872, allocations: 0.529 MB / 412.4 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001168/0.1874, allocations: 78.48 kB / 412.5 MB, free: 23.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.567e-05/0.1874, allocations: 28.86 kB / 412.5 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.1875, allocations: 7.984 kB / 412.5 MB, free: 23.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.171e-05/0.1875, allocations: 34.56 kB / 412.6 MB, free: 23.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 9.92e-07/0.1875, allocations: 0 / 412.6 MB, free: 23.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007543/0.1882, allocations: 0.6101 MB / 413.2 MB, free: 22.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.522e-05/0.1883, allocations: 55.34 kB / 413.2 MB, free: 22.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.533e-05/0.1884, allocations: 134.6 kB / 413.4 MB, free: 22.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.117e-06/0.1884, allocations: 29.7 kB / 413.4 MB, free: 22.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.969e-05/0.1884, allocations: 135.9 kB / 413.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.1884, allocations: 35.45 kB / 413.6 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-06/0.1885, allocations: 8 kB / 413.6 MB, free: 21.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.275e-05/0.1885, allocations: 322.8 kB / 413.9 MB, free: 21.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.451e-05/0.1886, allocations: 31.98 kB / 413.9 MB, free: 21.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.512e-05/0.1886, allocations: 85.25 kB / 414 MB, free: 21.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.1888, allocations: 135.8 kB / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1888, allocations: 0 / 414.1 MB, free: 21.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002058/0.189, allocations: 169.2 kB / 414.3 MB, free: 21.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/0.189, allocations: 4.094 kB / 414.3 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.189, allocations: 7.938 kB / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.1891, allocations: 192 / 414.3 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.1892, allocations: 43.92 kB / 414.4 MB, free: 21.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.1892, allocations: 3.938 kB / 414.4 MB, free: 21.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.219e-05/0.1893, allocations: 12 kB / 414.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.1893, allocations: 4 kB / 414.4 MB, free: 21.07 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.829e-05/0.1894, allocations: 129.8 kB / 414.5 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.586e-05/0.1894, allocations: 11.91 kB / 414.5 MB, free: 20.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.932e-05/0.1894, allocations: 12.38 kB / 414.5 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1894, allocations: 11.94 kB / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1894, allocations: 0 / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1894, allocations: 0 / 414.5 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003696/0.1898, allocations: 451.9 kB / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1898, allocations: 0 / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.19, allocations: 31.98 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.19, allocations: 4 kB / 415 MB, free: 20.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.19, allocations: 3.938 kB / 415 MB, free: 20.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.19, allocations: 4 kB / 415 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.19, allocations: 0 / 415 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002421/0.1902, allocations: 262.4 kB / 415.3 MB, free: 20.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.931e-05/0.1903, allocations: 85.05 kB / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.1903, allocations: 0 / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.608e-05/0.1904, allocations: 7.984 kB / 415.4 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.167e-05/0.1904, allocations: 8 kB / 415.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.1904, allocations: 4 kB / 415.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.189e-05/0.1904, allocations: 102.4 kB / 415.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1905, allocations: 0 / 415.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002282/0.1907, allocations: 24 kB / 415.5 MB, free: 19.82 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003423/0.191, allocations: 0.7881 MB / 416.3 MB, free: 19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001704/0.1912, allocations: 99.86 kB / 416.4 MB, free: 18.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1912, allocations: 4.438 kB / 416.4 MB, free: 18.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.624e-05/0.1913, allocations: 43.92 kB / 416.4 MB, free: 18.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.1916, allocations: 8.141 kB / 416.4 MB, free: 18.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009969/0.1926, allocations: 0.9991 MB / 417.4 MB, free: 17.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.1927, allocations: 0.716 MB / 418.2 MB, free: 17.03 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.316e-05/0.1928, allocations: 39.42 kB / 418.2 MB, free: 17 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1928, allocations: 0 / 418.2 MB, free: 17 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.4/2.593, allocations: 1.913 MB / 420.1 MB, free: 15.08 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.s_support,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