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.001127/0.001127, allocations: 117.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 204.6 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2565, allocations: 50.54 MB / 408.7 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.003385/0.2599, allocations: 1.996 MB / 410.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.2611, allocations: 0.5726 MB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.2613, allocations: 4 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.2615, allocations: 23.78 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.2617, allocations: 35.64 kB / 411.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003416/0.262, allocations: 55.86 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002789/0.2623, allocations: 147.4 kB / 411.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.2625, allocations: 73.5 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.2627, allocations: 71.78 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.2629, allocations: 63.7 kB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.133e-05/0.2629, allocations: 19.94 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.356e-05/0.263, allocations: 16 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.661e-05/0.263, allocations: 39.89 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.036e-05/0.2631, allocations: 75.61 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.2634, allocations: 161.1 kB / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2634, allocations: 0 / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2634, allocations: 0 / 412.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.2634, allocations: 0 / 412.1 MB, free: 14.23 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.0006708/0.2641, allocations: 451 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.2642, allocations: 8.031 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.558e-05/0.2642, allocations: 50.73 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001744/0.2644, allocations: 28.73 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003038/0.2647, allocations: 204.1 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.2647, allocations: 12.31 kB / 412.8 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.102e-05/0.2648, allocations: 20.31 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.2651, allocations: 149.4 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.2651, allocations: 3.906 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.2651, allocations: 12 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.2652, allocations: 8 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002032/0.2654, allocations: 87.94 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008021/0.2662, allocations: 0.5172 MB / 413.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001733/0.2664, allocations: 78.55 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.838e-05/0.2664, allocations: 32.84 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.2665, allocations: 8.172 kB / 413.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.2665, allocations: 34.5 kB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.2665, allocations: 0 / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.000954/0.2675, allocations: 0.5867 MB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.2675, allocations: 59.28 kB / 414.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.2676, allocations: 134 kB / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.2677, allocations: 26.73 kB / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.403e-05/0.2677, allocations: 143.8 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.2678, allocations: 35.45 kB / 414.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.733e-05/0.2678, allocations: 37.7 kB / 414.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.2679, allocations: 322.8 kB / 415.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.077e-05/0.268, allocations: 35.91 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.2681, allocations: 81.09 kB / 415.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.2683, allocations: 134.7 kB / 415.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.2683, allocations: 0 / 415.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002628/0.2686, allocations: 161.4 kB / 415.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.2686, allocations: 4 kB / 415.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.2686, allocations: 4 kB / 415.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.2687, allocations: 0 / 415.5 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.2688, allocations: 47.84 kB / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.2689, allocations: 0 / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.665e-05/0.2689, allocations: 7.906 kB / 415.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.269, allocations: 12.19 kB / 415.6 MB, free: 10.37 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.0001004/0.2691, allocations: 133.7 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/0.2691, allocations: 11.91 kB / 415.7 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.2692, allocations: 16.7 kB / 415.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2692, allocations: 3.938 kB / 415.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.2692, allocations: 4 kB / 415.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.2692, allocations: 0 / 415.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000524/0.2697, allocations: 451.9 kB / 416.2 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.2697, allocations: 0 / 416.2 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.2699, allocations: 27.98 kB / 416.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.2699, allocations: 0 / 416.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.2699, allocations: 4 kB / 416.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.2699, allocations: 0 / 416.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.27, allocations: 0 / 416.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003213/0.2703, allocations: 261.2 kB / 416.5 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.142e-05/0.2703, allocations: 88.98 kB / 416.5 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.2704, allocations: 4 kB / 416.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.2705, allocations: 0 / 416.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-05/0.2705, allocations: 11.98 kB / 416.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.2705, allocations: 4 kB / 416.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.848e-05/0.2706, allocations: 103.3 kB / 416.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2706, allocations: 0 / 416.7 MB, free: 9.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000286/0.2709, allocations: 24 kB / 416.7 MB, free: 9.129 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.0005328/0.2714, allocations: 0.7842 MB / 417.5 MB, free: 8.312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002156/0.2716, allocations: 91.83 kB / 417.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2717, allocations: 0 / 417.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.615e-05/0.2717, allocations: 39.92 kB / 417.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.2721, allocations: 16.22 kB / 417.6 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.2739, allocations: 1.866 MB / 419.5 MB, free: 6.172 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.2742, allocations: 0.708 MB / 420.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.79e-05/0.2743, allocations: 16.88 kB / 420.2 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.145e-05/0.2744, allocations: 43.36 kB / 420.3 MB, free: 5.375 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2744, allocations: 0 / 420.3 MB, free: 5.375 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.2938, allocations: 2.431 MB / 422.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.404/7.698, allocations: 0.5625 kB / 422.7 MB, free: 3.035 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