Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_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.001103/0.001103, allocations: 89.64 kB / 16.65 MB, free: 6.535 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.001296/0.001296, allocations: 175.5 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002612/0.0002612, allocations: 4 kB / 301.5 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.102, allocations: 50.41 MB / 351.9 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002228/0.1042, allocations: 1.677 MB / 353.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00084/0.1051, allocations: 0.4948 MB / 354.1 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.034e-05/0.1052, allocations: 4 kB / 354.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.76e-05/0.1053, allocations: 11.91 kB / 354.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.995e-05/0.1054, allocations: 23.78 kB / 354.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001817/0.1055, allocations: 43.89 kB / 354.2 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001763/0.1057, allocations: 143.5 kB / 354.3 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.1059, allocations: 53.95 kB / 354.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.584e-05/0.106, allocations: 59.72 kB / 354.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.1061, allocations: 51.72 kB / 354.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.1061, allocations: 8 kB / 354.5 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.978e-05/0.1062, allocations: 8 kB / 354.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.75e-05/0.1062, allocations: 23.91 kB / 354.5 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.964e-05/0.1063, allocations: 93.36 kB / 354.6 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.1064, allocations: 151.6 kB / 354.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1064, allocations: 0 / 354.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1064, allocations: 4 kB / 354.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1065, allocations: 0 / 354.8 MB, free: 0.4922 MB / 286.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.0005572/0.107, allocations: 411.1 kB / 355.2 MB, free: 44 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.1071, allocations: 8.031 kB / 355.2 MB, free: 36 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.038e-05/0.1071, allocations: 54.73 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.556e-05/0.1072, allocations: 24.69 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001721/0.1073, allocations: 204.1 kB / 355.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.1074, allocations: 16.38 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.337e-05/0.1074, allocations: 24.3 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002736/0.1077, allocations: 142.4 kB / 355.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1077, allocations: 0 / 355.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.1077, allocations: 4 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1077, allocations: 4 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.1079, allocations: 103.4 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000804/0.1087, allocations: 0.529 MB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001504/0.1089, allocations: 86.47 kB / 356.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.568e-05/0.109, allocations: 28.86 kB / 356.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.109, allocations: 0 / 356.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.099e-05/0.109, allocations: 34.55 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 9.12e-07/0.1091, allocations: 4 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009102/0.11, allocations: 0.6107 MB / 357 MB, free: 13.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.11, allocations: 67.22 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.727e-05/0.1101, allocations: 121.8 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.1101, allocations: 29.7 kB / 357.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.211e-05/0.1102, allocations: 132 kB / 357.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.1102, allocations: 43.39 kB / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.1103, allocations: 17.72 kB / 357.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.818e-05/0.1104, allocations: 318.8 kB / 357.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.403e-05/0.1105, allocations: 43.94 kB / 357.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.1107, allocations: 89.77 kB / 357.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.1109, allocations: 134.7 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.1109, allocations: 0 / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002605/0.1112, allocations: 165.3 kB / 358.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1112, allocations: 8 kB / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1112, allocations: 0 / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.1112, allocations: 4 kB / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.1114, allocations: 40.42 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.1114, allocations: 7.984 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.111e-05/0.1115, allocations: 12.19 kB / 358.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.1115, allocations: 4 kB / 358.3 MB, free: 12.64 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.21e-05/0.1116, allocations: 129.8 kB / 358.4 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.833e-05/0.1116, allocations: 7.906 kB / 358.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.362e-05/0.1117, allocations: 16.31 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1117, allocations: 3.938 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1117, allocations: 0 / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.1117, allocations: 3.984 kB / 358.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005003/0.1122, allocations: 451.9 kB / 358.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1122, allocations: 4 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.1123, allocations: 27.98 kB / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1123, allocations: 0 / 358.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.1124, allocations: 8.062 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.1124, allocations: 3.938 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1124, allocations: 0 / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004652/0.1128, allocations: 257 kB / 359.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.172e-05/0.1129, allocations: 85 kB / 359.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.1129, allocations: 8 kB / 359.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.089e-05/0.113, allocations: 8 kB / 359.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.997e-05/0.113, allocations: 11.92 kB / 359.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.1131, allocations: 0 / 359.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.997e-05/0.1131, allocations: 102.4 kB / 359.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1131, allocations: 0 / 359.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002509/0.1134, allocations: 28 kB / 359.4 MB, free: 11.4 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.0005582/0.1139, allocations: 0.7959 MB / 360.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002063/0.1142, allocations: 91.84 kB / 360.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1142, allocations: 0 / 360.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.738e-05/0.1143, allocations: 40.77 kB / 360.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.1146, allocations: 23.98 kB / 360.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.1166, allocations: 1.973 MB / 362.3 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.1169, allocations: 0.7082 MB / 363 MB, free: 7.578 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.553e-05/0.1169, allocations: 20.86 kB / 363 MB, free: 7.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.939e-05/0.117, allocations: 39.42 kB / 363.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.117, allocations: 0 / 363.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2223/0.3393, allocations: 2.085 MB / 365.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002835/0.3396, allocations: 201.4 kB / 365.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/2.18, allocations: 0 / 365.4 MB, free: 5.297 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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.f,sineForce.offset,sineForce.phase,sineForce.startTime,sineForce.y,speedSensor1.flange.f,speedSensor1.flange.s,speedSensor1.v,time