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.001411/0.001411, allocations: 104 kB / 16.92 MB, free: 5.793 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.001628/0.001628, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.309/1.309, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 55.36 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09257/0.09371, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.00324/0.09699, allocations: 1.969 MB / 352.1 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008323/0.09785, allocations: 0.5142 MB / 352.6 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.09799, allocations: 4 kB / 352.6 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.09816, allocations: 23.72 kB / 352.7 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.66e-05/0.09826, allocations: 27.72 kB / 352.7 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002269/0.0985, allocations: 51.88 kB / 352.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.09872, allocations: 147.5 kB / 352.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001784/0.0989, allocations: 65.38 kB / 353 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.09903, allocations: 67.78 kB / 353 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.09916, allocations: 63.7 kB / 353.1 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.319e-05/0.0992, allocations: 16 kB / 353.1 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.566e-05/0.09923, allocations: 16 kB / 353.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.721e-05/0.09927, allocations: 31.91 kB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.582e-05/0.09935, allocations: 75.66 kB / 353.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.09958, allocations: 159.7 kB / 353.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.09959, allocations: 0 / 353.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.0996, allocations: 0 / 353.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.09962, allocations: 0 / 353.4 MB, free: 1.09 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.0006668/0.1003, allocations: 447 kB / 353.8 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.1003, allocations: 12.03 kB / 353.8 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.694e-05/0.1004, allocations: 46.73 kB / 353.9 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.053e-05/0.1005, allocations: 20.69 kB / 353.9 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.1007, allocations: 208.1 kB / 354.1 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.1007, allocations: 8.375 kB / 354.1 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.371e-05/0.1008, allocations: 20.38 kB / 354.1 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.1011, allocations: 138.4 kB / 354.3 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.1012, allocations: 3.906 kB / 354.3 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.1012, allocations: 12 kB / 354.3 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.1012, allocations: 8 kB / 354.3 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002381/0.1015, allocations: 95.5 kB / 354.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008235/0.1023, allocations: 0.525 MB / 354.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.1025, allocations: 78.48 kB / 355 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.009e-05/0.1025, allocations: 28.84 kB / 355 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.1026, allocations: 4 kB / 355 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.1026, allocations: 30.56 kB / 355 MB, free: 15.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.623e-06/0.1026, allocations: 7.938 kB / 355 MB, free: 15.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.001072/0.1037, allocations: 0.5946 MB / 355.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.1038, allocations: 55.34 kB / 355.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.1039, allocations: 125.8 kB / 355.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.1039, allocations: 33.7 kB / 355.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.78e-05/0.104, allocations: 131.9 kB / 356 MB, free: 14.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.104, allocations: 47.38 kB / 356 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.699e-05/0.1041, allocations: 33.7 kB / 356.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1042, allocations: 322.8 kB / 356.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.631e-05/0.1043, allocations: 31.94 kB / 356.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001122/0.1044, allocations: 89.59 kB / 356.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.1046, allocations: 135.8 kB / 356.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1046, allocations: 0 / 356.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002541/0.1048, allocations: 157.3 kB / 356.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1049, allocations: 4 kB / 356.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1049, allocations: 11.92 kB / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.1049, allocations: 4.188 kB / 356.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.1051, allocations: 39.92 kB / 356.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.1051, allocations: 0 / 356.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.476e-05/0.1052, allocations: 8 kB / 356.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.1052, allocations: 8 kB / 356.9 MB, free: 13.24 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 8.95e-05/0.1053, allocations: 121.8 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.1053, allocations: 15.89 kB / 357 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.608e-05/0.1054, allocations: 12.38 kB / 357 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1054, allocations: 7.938 kB / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1054, allocations: 0 / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1054, allocations: 4 kB / 357 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005144/0.1059, allocations: 440 kB / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1059, allocations: 0 / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.1061, allocations: 27.92 kB / 357.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1061, allocations: 4.062 kB / 357.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.1061, allocations: 8 kB / 357.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1061, allocations: 0 / 357.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1061, allocations: 0 / 357.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.1064, allocations: 256.9 kB / 357.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.1065, allocations: 88.95 kB / 357.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.1065, allocations: 0 / 357.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.1066, allocations: 12 kB / 357.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.993e-05/0.1067, allocations: 7.984 kB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.1067, allocations: 4 kB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.362e-05/0.1068, allocations: 101.9 kB / 357.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1068, allocations: 0 / 357.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002708/0.107, allocations: 24 kB / 358 MB, free: 12.02 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.0005549/0.1076, allocations: 0.7844 MB / 358.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002343/0.1078, allocations: 103.8 kB / 358.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.1079, allocations: 0 / 358.8 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.335e-05/0.1079, allocations: 39.92 kB / 358.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.1083, allocations: 16 kB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.1102, allocations: 1.84 MB / 360.7 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.1105, allocations: 0.7119 MB / 361.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.881e-05/0.1105, allocations: 16.81 kB / 361.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.369e-05/0.1106, allocations: 39.75 kB / 361.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1106, allocations: 0 / 361.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.1347, allocations: 2.321 MB / 363.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/7.971, allocations: 18.23 kB / 363.8 MB, free: 6.012 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