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.001078/0.001078, allocations: 111 kB / 17.06 MB, free: 5.957 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.00114/0.00114, allocations: 198.9 kB / 18.01 MB, free: 5.047 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.284/1.284, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 35.94 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2635, allocations: 49.45 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002932/0.2665, allocations: 1.972 MB / 402.2 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007599/0.2672, allocations: 0.4986 MB / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.14e-05/0.2673, allocations: 4 kB / 402.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.2675, allocations: 19.8 kB / 402.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.436e-05/0.2675, allocations: 35.64 kB / 402.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.2677, allocations: 47.94 kB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.2679, allocations: 143.4 kB / 402.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.2681, allocations: 73.5 kB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.2682, allocations: 67.72 kB / 403.1 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.2683, allocations: 67.7 kB / 403.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.2683, allocations: 12 kB / 403.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.203e-05/0.2684, allocations: 16 kB / 403.2 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.301e-05/0.2684, allocations: 31.91 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.366e-05/0.2685, allocations: 67.67 kB / 403.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.2687, allocations: 169.1 kB / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2687, allocations: 0 / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2687, allocations: 0 / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.2687, allocations: 4 kB / 403.4 MB, free: 5.602 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.0005476/0.2692, allocations: 439 kB / 403.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.2693, allocations: 11.97 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.827e-05/0.2693, allocations: 54.67 kB / 403.9 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.2694, allocations: 16.75 kB / 403.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.2696, allocations: 204.1 kB / 404.1 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.2696, allocations: 8.375 kB / 404.2 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.2697, allocations: 24.38 kB / 404.2 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.2699, allocations: 150.7 kB / 404.3 MB, free: 4.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.27, allocations: 4 kB / 404.3 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.27, allocations: 8 kB / 404.3 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.27, allocations: 4 kB / 404.3 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.2702, allocations: 91.69 kB / 404.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006958/0.2709, allocations: 0.5287 MB / 405 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.271, allocations: 78.48 kB / 405 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.267e-05/0.2711, allocations: 28.86 kB / 405.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.451e-05/0.2711, allocations: 0 / 405.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.2712, allocations: 34.55 kB / 405.1 MB, free: 3.762 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 8.82e-07/0.2712, allocations: 4 kB / 405.1 MB, free: 3.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009228/0.2721, allocations: 0.5953 MB / 405.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.2721, allocations: 59.28 kB / 405.8 MB, free: 3 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.2723, allocations: 129.8 kB / 405.9 MB, free: 2.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.2723, allocations: 33.98 kB / 405.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.2723, allocations: 132 kB / 406 MB, free: 2.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.708e-05/0.2724, allocations: 39.44 kB / 406.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.127e-05/0.2724, allocations: 45.55 kB / 406.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.642e-05/0.2725, allocations: 314.8 kB / 406.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.256e-05/0.2726, allocations: 35.97 kB / 406.5 MB, free: 2.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.2727, allocations: 86.81 kB / 406.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.2729, allocations: 142.7 kB / 406.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.2729, allocations: 0 / 406.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002469/0.2732, allocations: 149.4 kB / 406.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.2732, allocations: 8 kB / 406.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2732, allocations: 0 / 406.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2732, allocations: 8.188 kB / 406.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.2734, allocations: 39.86 kB / 406.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.597e-06/0.2734, allocations: 7.984 kB / 406.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.989e-05/0.2735, allocations: 8 kB / 406.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.2735, allocations: 4 kB / 406.9 MB, free: 1.75 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 8.734e-05/0.2736, allocations: 129.7 kB / 407 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.2736, allocations: 7.906 kB / 407.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.2737, allocations: 20.36 kB / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.2737, allocations: 7.938 kB / 407.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2737, allocations: 0 / 407.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2737, allocations: 3.938 kB / 407.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004755/0.2742, allocations: 440 kB / 407.5 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2742, allocations: 96 / 407.5 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.2743, allocations: 27.92 kB / 407.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2743, allocations: 4 kB / 407.5 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.2744, allocations: 4.062 kB / 407.5 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.2744, allocations: 3.938 kB / 407.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2744, allocations: 4 kB / 407.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.2747, allocations: 245.1 kB / 407.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.76e-05/0.2747, allocations: 85 kB / 407.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.997e-05/0.2747, allocations: 8.062 kB / 407.9 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.335e-05/0.2748, allocations: 12 kB / 407.9 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.2749, allocations: 7.984 kB / 407.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.2749, allocations: 3.938 kB / 407.9 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.817e-05/0.2749, allocations: 106.6 kB / 408 MB, free: 0.543 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.275, allocations: 0 / 408 MB, free: 0.543 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.2752, allocations: 24 kB / 408 MB, free: 0.5195 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.0005359/0.2758, allocations: 0.7863 MB / 408.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002133/0.276, allocations: 92.28 kB / 408.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.276, allocations: 0 / 408.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.499e-05/0.2761, allocations: 43.91 kB / 409 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.2764, allocations: 15.98 kB / 409 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.2783, allocations: 1.857 MB / 410.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.2786, allocations: 0.7158 MB / 411.5 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.271e-05/0.2786, allocations: 4.891 kB / 411.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.266e-05/0.2787, allocations: 43.36 kB / 411.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2787, allocations: 4 kB / 411.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01873/0.2975, allocations: 2.391 MB / 414 MB, free: 10.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.553/7.851, allocations: 14.33 kB / 414 MB, free: 10.44 MB / 334.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