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.001124/0.001128, allocations: 101.5 kB / 17.72 MB, free: 5.371 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.001079/0.001079, allocations: 192 kB / 18.66 MB, free: 4.445 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.25/1.25, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001152/0.001152, allocations: 51.92 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08052/0.08168, allocations: 46.63 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002987/0.08471, allocations: 1.96 MB / 376.6 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009039/0.08564, allocations: 0.55 MB / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.0858, allocations: 0 / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.08597, allocations: 23.78 kB / 377.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001028/0.08608, allocations: 39.66 kB / 377.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002146/0.0863, allocations: 35.94 kB / 377.2 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.0865, allocations: 151.4 kB / 377.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.08668, allocations: 81.53 kB / 377.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.0868, allocations: 63.78 kB / 377.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.08694, allocations: 63.7 kB / 377.6 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.08697, allocations: 19.98 kB / 377.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.506e-05/0.087, allocations: 12 kB / 377.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.778e-05/0.08704, allocations: 35.86 kB / 377.7 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.268e-05/0.08712, allocations: 71.66 kB / 377.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.08732, allocations: 163.5 kB / 377.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.08734, allocations: 0 / 377.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.08734, allocations: 0 / 377.9 MB, free: 1.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.08736, allocations: 0 / 377.9 MB, free: 1.816 MB / 318.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.0005984/0.08796, allocations: 443 kB / 378.3 MB, free: 1.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.08801, allocations: 15.97 kB / 378.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.593e-05/0.08806, allocations: 50.67 kB / 378.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.146e-05/0.08811, allocations: 20.73 kB / 378.4 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.08836, allocations: 208.2 kB / 378.6 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.08838, allocations: 12.38 kB / 378.6 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.049e-05/0.08843, allocations: 20.28 kB / 378.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002689/0.0887, allocations: 149.4 kB / 378.8 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.08873, allocations: 0 / 378.8 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.08875, allocations: 8 kB / 378.8 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.08877, allocations: 4 kB / 378.8 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.08896, allocations: 91.94 kB / 378.9 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007433/0.08971, allocations: 0.5173 MB / 379.4 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.08988, allocations: 86.47 kB / 379.5 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.316e-05/0.08995, allocations: 28.84 kB / 379.5 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.08997, allocations: 0 / 379.5 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1712/0.2612, allocations: 32.62 kB / 379.6 MB, free: 12.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 2.685e-06/0.2612, allocations: 0 / 379.6 MB, free: 12.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008853/0.2621, allocations: 0.5854 MB / 380.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.976e-05/0.2622, allocations: 56.41 kB / 380.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.621e-05/0.2622, allocations: 138.4 kB / 380.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.195e-06/0.2623, allocations: 30.27 kB / 380.4 MB, free: 12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.121e-05/0.2623, allocations: 130.8 kB / 380.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.2623, allocations: 38.45 kB / 380.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.2624, allocations: 38.22 kB / 380.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.735e-05/0.2624, allocations: 323 kB / 380.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.082e-05/0.2625, allocations: 28.64 kB / 380.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.499e-05/0.2626, allocations: 89.75 kB / 381 MB, free: 11.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001566/0.2628, allocations: 135.3 kB / 381.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2628, allocations: 0 / 381.1 MB, free: 11.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002229/0.263, allocations: 157.6 kB / 381.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.263, allocations: 4.688 kB / 381.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.263, allocations: 4.328 kB / 381.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.2631, allocations: 6.625 kB / 381.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.2632, allocations: 36.94 kB / 381.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.2632, allocations: 3.5 kB / 381.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.695e-05/0.2633, allocations: 8.891 kB / 381.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.2633, allocations: 5.5 kB / 381.3 MB, free: 11.38 MB / 318.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 6.323e-05/0.2634, allocations: 137.5 kB / 381.5 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.2634, allocations: 7.875 kB / 381.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.92e-05/0.2635, allocations: 14.64 kB / 381.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2635, allocations: 4.125 kB / 381.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2635, allocations: 0 / 381.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.2635, allocations: 2.578 kB / 381.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004228/0.2639, allocations: 450.7 kB / 381.9 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2639, allocations: 1.375 kB / 381.9 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.264, allocations: 23.14 kB / 382 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.2641, allocations: 2.312 kB / 382 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.2641, allocations: 4.812 kB / 382 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2641, allocations: 1.375 kB / 382 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.2641, allocations: 6.062 kB / 382 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.2643, allocations: 247.6 kB / 382.2 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.251e-05/0.2644, allocations: 84.47 kB / 382.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.2644, allocations: 8.047 kB / 382.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.154e-05/0.2645, allocations: 7.609 kB / 382.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.2645, allocations: 12.08 kB / 382.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.2645, allocations: 7.641 kB / 382.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.731e-05/0.2646, allocations: 97.67 kB / 382.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2646, allocations: 0 / 382.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002679/0.2649, allocations: 25.5 kB / 382.5 MB, free: 10.59 MB / 318.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.0004069/0.2653, allocations: 0.7773 MB / 383.2 MB, free: 9.914 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002373/0.2655, allocations: 96.36 kB / 383.3 MB, free: 9.906 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.2655, allocations: 1.969 kB / 383.3 MB, free: 9.906 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.904e-05/0.2656, allocations: 38.92 kB / 383.4 MB, free: 9.902 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.2659, allocations: 16.8 kB / 383.4 MB, free: 9.898 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.2676, allocations: 1.869 MB / 385.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.2678, allocations: 0.7107 MB / 386 MB, free: 7.723 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.992e-05/0.2678, allocations: 13.7 kB / 386 MB, free: 7.715 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.94e-05/0.2679, allocations: 40.36 kB / 386 MB, free: 7.707 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2679, allocations: 0 / 386 MB, free: 7.707 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01905/0.287, allocations: 2.391 MB / 388.4 MB, free: 7.156 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.31/7.597, allocations: 24.95 kB / 388.4 MB, free: 7.133 MB / 318.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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