Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_3_2_3_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.001028/0.001029, allocations: 112.3 kB / 17.28 MB, free: 6.199 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.0009624/0.0009624, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 52.14 kB / 280.2 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07346/0.0754, allocations: 46.62 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002839/0.07826, allocations: 2.029 MB / 328.9 MB, free: 2.656 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007438/0.07903, allocations: 0.5347 MB / 329.4 MB, free: 2.113 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.619e-05/0.07914, allocations: 4 kB / 329.4 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.32e-05/0.07926, allocations: 15.91 kB / 329.5 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.211e-05/0.07933, allocations: 27.77 kB / 329.5 MB, free: 2.066 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001416/0.07948, allocations: 35.92 kB / 329.5 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001575/0.07965, allocations: 147.4 kB / 329.7 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.07978, allocations: 73.78 kB / 329.7 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.07989, allocations: 59.84 kB / 329.8 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.265e-05/0.07998, allocations: 71.69 kB / 329.9 MB, free: 1.688 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.08001, allocations: 12 kB / 329.9 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.14e-05/0.08004, allocations: 16 kB / 329.9 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.421e-05/0.08007, allocations: 31.86 kB / 329.9 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.884e-05/0.08013, allocations: 71.67 kB / 330 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.08029, allocations: 171.4 kB / 330.2 MB, free: 1.391 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.08029, allocations: 0 / 330.2 MB, free: 1.391 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.0803, allocations: 4 kB / 330.2 MB, free: 1.387 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.08031, allocations: 0 / 330.2 MB, free: 1.387 MB / 270.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.0004568/0.08077, allocations: 435.1 kB / 330.6 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.787e-05/0.08081, allocations: 8.031 kB / 330.6 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.185e-05/0.08086, allocations: 46.73 kB / 330.6 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.117e-05/0.08089, allocations: 16.75 kB / 330.7 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.08105, allocations: 208 kB / 330.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.08107, allocations: 12.38 kB / 330.9 MB, free: 0.582 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.0811, allocations: 24.36 kB / 330.9 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002369/0.08134, allocations: 145.2 kB / 331 MB, free: 420 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.08136, allocations: 0 / 331 MB, free: 420 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.08138, allocations: 4 kB / 331 MB, free: 416 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.08139, allocations: 4 kB / 331 MB, free: 412 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.08158, allocations: 91.94 kB / 331.1 MB, free: 320 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000659/0.08224, allocations: 0.5326 MB / 331.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.08239, allocations: 82.48 kB / 331.7 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.801e-05/0.08246, allocations: 24.86 kB / 331.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.08248, allocations: 0 / 331.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.0825, allocations: 46.47 kB / 331.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of pre-optimization done (n=9): time 8.21e-07/0.08251, allocations: 0 / 331.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007921/0.08331, allocations: 0.5945 MB / 332.4 MB, free: 14.86 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.627e-05/0.08334, allocations: 59.28 kB / 332.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.471e-05/0.08343, allocations: 125.8 kB / 332.6 MB, free: 14.66 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.08345, allocations: 29.7 kB / 332.6 MB, free: 14.62 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.43e-05/0.08352, allocations: 135.9 kB / 332.8 MB, free: 14.48 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.742e-05/0.08355, allocations: 39.39 kB / 332.8 MB, free: 14.45 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-05/0.08361, allocations: 45.61 kB / 332.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.619e-05/0.0837, allocations: 318.8 kB / 333.1 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.242e-05/0.08378, allocations: 35.91 kB / 333.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.21e-05/0.08388, allocations: 82.84 kB / 333.3 MB, free: 13.93 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001711/0.08406, allocations: 135.8 kB / 333.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.08407, allocations: 0 / 333.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002334/0.08431, allocations: 161.3 kB / 333.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.08432, allocations: 4 kB / 333.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.08434, allocations: 4 kB / 333.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.637e-06/0.08435, allocations: 0 / 333.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.08449, allocations: 43.84 kB / 333.6 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.08451, allocations: 4 kB / 333.6 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.653e-05/0.08458, allocations: 8.188 kB / 333.6 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.063e-05/0.0846, allocations: 12 kB / 333.6 MB, free: 13.54 MB / 286.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.383e-05/0.08468, allocations: 121.8 kB / 333.7 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.08471, allocations: 7.906 kB / 333.8 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.913e-05/0.08475, allocations: 20.36 kB / 333.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.08475, allocations: 3.938 kB / 333.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.08476, allocations: 0 / 333.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.08477, allocations: 0 / 333.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004666/0.08524, allocations: 451.9 kB / 334.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.08525, allocations: 0 / 334.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.08538, allocations: 27.98 kB / 334.2 MB, free: 12.85 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.08539, allocations: 0 / 334.2 MB, free: 12.85 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.0854, allocations: 4 kB / 334.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.08541, allocations: 3.938 kB / 334.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.08542, allocations: 0 / 334.3 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.08569, allocations: 257.1 kB / 334.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.412e-05/0.08573, allocations: 85.05 kB / 334.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.08576, allocations: 0 / 334.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.123e-05/0.08584, allocations: 8 kB / 334.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.805e-05/0.08587, allocations: 15.98 kB / 334.6 MB, free: 12.44 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.08589, allocations: 4 kB / 334.6 MB, free: 12.44 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.298e-05/0.08594, allocations: 99.27 kB / 334.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08595, allocations: 0 / 334.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002515/0.0862, allocations: 24 kB / 334.7 MB, free: 12.32 MB / 286.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.0004779/0.08669, allocations: 0.7805 MB / 335.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000183/0.08688, allocations: 103.8 kB / 335.6 MB, free: 11.4 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.08689, allocations: 0 / 335.6 MB, free: 11.4 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.994e-05/0.08697, allocations: 40.42 kB / 335.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.08725, allocations: 12.06 kB / 335.7 MB, free: 11.35 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.0889, allocations: 1.919 MB / 337.6 MB, free: 9.301 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.08913, allocations: 0.708 MB / 338.3 MB, free: 8.566 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.185e-05/0.08919, allocations: 16.88 kB / 338.3 MB, free: 8.551 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.155e-05/0.08924, allocations: 39.42 kB / 338.4 MB, free: 8.512 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.08925, allocations: 0 / 338.4 MB, free: 8.512 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2045/0.2938, allocations: 2.217 MB / 340.6 MB, free: 6.285 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002204/0.294, allocations: 202.3 kB / 340.8 MB, free: 6.027 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.911/2.205, allocations: 7.938 kB / 340.8 MB, free: 6.02 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_3.2.3_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.freqHz,sineForce.offset,sineForce.phase,sineForce.startTime,sineForce.y,speedSensor1.flange.f,speedSensor1.flange.s,speedSensor1.v,time