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.001321/0.001321, allocations: 103.3 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001322, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 61.28 kB / 306.4 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08465/0.08596, allocations: 50.52 MB / 356.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.00264/0.08864, allocations: 2.054 MB / 358.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007778/0.08943, allocations: 0.5688 MB / 359.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.775e-05/0.08952, allocations: 4 kB / 359.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001034/0.08963, allocations: 19.86 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.18e-05/0.0897, allocations: 27.77 kB / 359.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001701/0.08987, allocations: 43.97 kB / 359.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.09003, allocations: 139.5 kB / 359.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.09017, allocations: 60.16 kB / 359.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.0903, allocations: 75.7 kB / 359.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.458e-05/0.0904, allocations: 63.7 kB / 359.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.816e-05/0.09043, allocations: 12 kB / 359.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.701e-05/0.09048, allocations: 16 kB / 360 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.43e-05/0.09051, allocations: 31.86 kB / 360 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.897e-05/0.09058, allocations: 71.64 kB / 360.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.09074, allocations: 159.7 kB / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.09075, allocations: 0 / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.09076, allocations: 0 / 360.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.09077, allocations: 0 / 360.2 MB, free: 11.08 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.0005182/0.09129, allocations: 443.1 kB / 360.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.09133, allocations: 12.03 kB / 360.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.271e-05/0.09138, allocations: 50.73 kB / 360.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.09151, allocations: 20.75 kB / 360.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001717/0.09169, allocations: 208.1 kB / 360.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.09171, allocations: 12.38 kB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.766e-05/0.09174, allocations: 12.38 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.09202, allocations: 149.4 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.09204, allocations: 8 kB / 361.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.09206, allocations: 4 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.09207, allocations: 4 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.09225, allocations: 87.94 kB / 361.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006973/0.09296, allocations: 0.5404 MB / 361.7 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.09311, allocations: 74.55 kB / 361.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.85e-05/0.09319, allocations: 32.84 kB / 361.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.295e-05/0.09321, allocations: 0 / 361.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.09323, allocations: 38.69 kB / 361.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 8.91e-07/0.09324, allocations: 0 / 361.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008728/0.09412, allocations: 0.5983 MB / 362.5 MB, free: 8.539 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.09416, allocations: 59.34 kB / 362.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.09426, allocations: 126.1 kB / 362.7 MB, free: 8.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.09428, allocations: 29.7 kB / 362.7 MB, free: 8.297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.033e-05/0.09435, allocations: 128 kB / 362.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.09438, allocations: 35.45 kB / 362.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.539e-05/0.09444, allocations: 41.61 kB / 362.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.09454, allocations: 322.8 kB / 363.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.311e-05/0.09462, allocations: 27.98 kB / 363.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.09473, allocations: 94.72 kB / 363.3 MB, free: 7.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001799/0.09492, allocations: 131.8 kB / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.09493, allocations: 0 / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002417/0.09517, allocations: 157.4 kB / 363.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.0952, allocations: 8.188 kB / 363.6 MB, free: 7.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.09521, allocations: 4.094 kB / 363.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.09522, allocations: 3.938 kB / 363.6 MB, free: 7.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.09537, allocations: 39.86 kB / 363.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.09539, allocations: 4 kB / 363.7 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.715e-05/0.09546, allocations: 8 kB / 363.7 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.09547, allocations: 8 kB / 363.7 MB, free: 7.23 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 9.246e-05/0.09557, allocations: 134.7 kB / 363.8 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.858e-05/0.09561, allocations: 11.91 kB / 363.8 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.375e-05/0.09564, allocations: 20.72 kB / 363.8 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.09565, allocations: 3.938 kB / 363.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.09566, allocations: 0 / 363.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.09567, allocations: 0 / 363.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004707/0.09614, allocations: 447.9 kB / 364.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.09616, allocations: 4.062 kB / 364.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.09628, allocations: 23.98 kB / 364.3 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.09629, allocations: 0 / 364.3 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.09631, allocations: 8 kB / 364.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.09632, allocations: 0 / 364.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.09632, allocations: 0 / 364.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002952/0.09662, allocations: 257 kB / 364.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.09667, allocations: 85.05 kB / 364.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.0967, allocations: 4 kB / 364.7 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.052e-05/0.09678, allocations: 7.984 kB / 364.7 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.151e-05/0.09682, allocations: 4 kB / 364.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.09683, allocations: 4 kB / 364.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.469e-05/0.09689, allocations: 105.5 kB / 364.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09689, allocations: 0 / 364.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000252/0.09715, allocations: 32.06 kB / 364.8 MB, free: 5.992 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.0005089/0.09767, allocations: 0.7921 MB / 365.6 MB, free: 5.164 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000187/0.09786, allocations: 91.86 kB / 365.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.09787, allocations: 0 / 365.7 MB, free: 5.074 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.035e-05/0.09796, allocations: 39.92 kB / 365.7 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.09827, allocations: 15.98 kB / 365.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.1, allocations: 1.903 MB / 367.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000241/0.1003, allocations: 0.7199 MB / 368.4 MB, free: 2.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.18e-05/0.1004, allocations: 8.875 kB / 368.4 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.037e-05/0.1004, allocations: 39.44 kB / 368.4 MB, free: 2.184 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1004, allocations: 4 kB / 368.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.252/0.3524, allocations: 2.2 MB / 370.6 MB, free: 80 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.1508/0.5033, allocations: 198.3 kB / 370.8 MB, free: 22.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/2.291, allocations: 0.9375 kB / 370.8 MB, free: 22.83 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