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.001414/0.001414, allocations: 117.7 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001816/0.001816, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 63.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.266, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003109/0.2691, allocations: 1.993 MB / 410.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009648/0.2701, allocations: 0.5765 MB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.2702, allocations: 4 kB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.2704, allocations: 23.73 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.057e-05/0.2705, allocations: 31.72 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002492/0.2707, allocations: 51.86 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001955/0.2709, allocations: 147.4 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.2711, allocations: 77.48 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.2713, allocations: 67.73 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.2714, allocations: 75.67 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.2714, allocations: 12 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.622e-05/0.2715, allocations: 20 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.579e-05/0.2715, allocations: 27.92 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.098e-05/0.2716, allocations: 75.61 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002113/0.2718, allocations: 169.1 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2718, allocations: 4 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2718, allocations: 0 / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.2719, allocations: 0 / 412.1 MB, free: 14.2 MB / 334.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.00056/0.2724, allocations: 443 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.2725, allocations: 12.02 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.271e-05/0.2725, allocations: 50.69 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.2727, allocations: 28.73 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.2729, allocations: 204.1 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.2729, allocations: 20.31 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.434e-05/0.273, allocations: 16.31 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002744/0.2733, allocations: 141.5 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.2733, allocations: 3.906 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.2733, allocations: 8 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2733, allocations: 4 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.2735, allocations: 87.94 kB / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007483/0.2743, allocations: 0.5328 MB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.2745, allocations: 74.73 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.819e-05/0.2745, allocations: 32.78 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.2746, allocations: 4 kB / 413.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.2746, allocations: 38.56 kB / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.303e-06/0.2746, allocations: 0 / 413.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.001009/0.2756, allocations: 0.5837 MB / 414.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.2757, allocations: 59.28 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.2758, allocations: 138 kB / 414.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.2758, allocations: 29.7 kB / 414.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.269e-05/0.2759, allocations: 131.9 kB / 414.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.776e-05/0.2759, allocations: 39.64 kB / 414.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.279e-05/0.276, allocations: 37.7 kB / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.752e-05/0.2761, allocations: 322.8 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.292e-05/0.2762, allocations: 35.98 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.2763, allocations: 89.23 kB / 415.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001775/0.2765, allocations: 126.7 kB / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.2765, allocations: 0 / 415.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002458/0.2767, allocations: 153.5 kB / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.2768, allocations: 11.98 kB / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.2768, allocations: 0 / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.2768, allocations: 4.047 kB / 415.5 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.277, allocations: 47.84 kB / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/0.277, allocations: 4 kB / 415.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.933e-05/0.2771, allocations: 7.906 kB / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.2771, allocations: 8 kB / 415.6 MB, free: 10.34 MB / 334.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 0.0001119/0.2772, allocations: 141.7 kB / 415.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.127e-05/0.2772, allocations: 7.906 kB / 415.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.916e-05/0.2773, allocations: 12.72 kB / 415.7 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.2773, allocations: 7.938 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2773, allocations: 0 / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2773, allocations: 0 / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005248/0.2778, allocations: 451.9 kB / 416.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2778, allocations: 4.25 kB / 416.2 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.278, allocations: 23.98 kB / 416.2 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.278, allocations: 7.938 kB / 416.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.278, allocations: 0 / 416.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.278, allocations: 0 / 416.2 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.278, allocations: 7.938 kB / 416.2 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.2783, allocations: 253 kB / 416.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.133e-05/0.2784, allocations: 85.02 kB / 416.5 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.2784, allocations: 4 kB / 416.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.879e-05/0.2785, allocations: 3.984 kB / 416.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.272e-05/0.2786, allocations: 8 kB / 416.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.2786, allocations: 4 kB / 416.6 MB, free: 9.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.826e-05/0.2786, allocations: 95.27 kB / 416.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2786, allocations: 0 / 416.7 MB, free: 9.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.2789, allocations: 36.05 kB / 416.7 MB, free: 9.094 MB / 334.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.0005246/0.2794, allocations: 0.7765 MB / 417.5 MB, free: 8.285 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002344/0.2797, allocations: 95.83 kB / 417.6 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2797, allocations: 3.938 kB / 417.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.623e-05/0.2798, allocations: 39.92 kB / 417.6 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.2801, allocations: 15.98 kB / 417.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.2821, allocations: 1.871 MB / 419.5 MB, free: 6.137 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.2823, allocations: 0.7119 MB / 420.2 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.272e-05/0.2824, allocations: 8.891 kB / 420.2 MB, free: 5.387 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.389e-05/0.2825, allocations: 43.75 kB / 420.3 MB, free: 5.344 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2825, allocations: 3.938 kB / 420.3 MB, free: 5.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2995/0.5819, allocations: 2.422 MB / 422.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.084/8.666, allocations: 3.531 kB / 422.7 MB, free: 3.004 MB / 334.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