Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001342/0.001342, allocations: 106.2 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00147/0.00147, allocations: 205.8 kB / 18.27 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2179/0.2179, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 75.41 kB / 417.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1344, allocations: 62.43 MB / 479.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.3182/0.4526, allocations: 73.3 MB / 0.5399 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04341/0.496, allocations: 16.06 MB / 0.5556 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0223/0.5184, allocations: 356.9 kB / 0.5559 GB, free: 6.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03686/0.5553, allocations: 21.4 MB / 0.5768 GB, free: 3.613 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01205/0.5674, allocations: 3.477 MB / 0.5802 GB, free: 128 kB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01067/0.5781, allocations: 4.609 MB / 0.5847 GB, free: 11.51 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01762/0.5958, allocations: 11.32 MB / 0.5958 GB, free: 168 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05203/0.6479, allocations: 34.27 MB / 0.6293 GB, free: 13.7 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01322/0.6611, allocations: 7.333 MB / 0.6364 GB, free: 6.355 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01596/0.6772, allocations: 9.808 MB / 0.646 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008336/0.6855, allocations: 2.25 MB / 0.6482 GB, free: 10.27 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01113/0.6967, allocations: 3.595 MB / 0.6517 GB, free: 6.676 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01303/0.7098, allocations: 8.694 MB / 0.6602 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.02053/0.7303, allocations: 9.947 MB / 0.6699 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.04337/0.7737, allocations: 32.45 MB / 0.7016 GB, free: 3.438 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.7738, allocations: 3.938 kB / 0.7016 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.813e-06/0.7738, allocations: 0 / 0.7016 GB, free: 3.434 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.001234/0.775, allocations: 0 / 0.7016 GB, free: 3.434 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5575 * Number of variables: 5575 Notification: Performance of Generate backend data structure: time 0.4887/1.264, allocations: 18.52 MB / 0.7197 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/1.264, allocations: 9 kB / 0.7197 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01119/1.275, allocations: 2.801 MB / 0.7224 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1611/1.436, allocations: 13.62 MB / 0.7357 GB, free: 157.8 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02207/1.458, allocations: 9.401 MB / 0.7449 GB, free: 148.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001202/1.459, allocations: 1.267 MB / 0.7462 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006912/1.466, allocations: 1.686 MB / 0.7478 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08832/1.555, allocations: 38.36 MB / 0.7853 GB, free: 106.1 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008803/1.556, allocations: 99.14 kB / 0.7854 GB, free: 106 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006053/1.562, allocations: 0.7315 MB / 0.7861 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004401/1.566, allocations: 3.546 MB / 0.7895 GB, free: 101.7 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06066/1.627, allocations: 31.15 MB / 0.82 GB, free: 70.57 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6457/2.273, allocations: 112.1 MB / 0.9294 GB, free: 126.3 MB / 0.5608 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0519/2.324, allocations: 21.49 MB / 0.9504 GB, free: 123.9 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006723/2.331, allocations: 6.701 MB / 0.9569 GB, free: 123.9 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03599/2.367, allocations: 26.42 MB / 0.9827 GB, free: 110.3 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.541e-05/2.367, allocations: 80.81 kB / 0.9828 GB, free: 110.2 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=336): time 8.326e-06/2.367, allocations: 2.469 kB / 0.9828 GB, free: 110.2 MB / 0.5608 GB Notification: Performance of matching and sorting (n=450): time 1.199/3.567, allocations: 321.2 MB / 1.297 GB, free: 131 MB / 0.6233 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/3.567, allocations: 283.2 kB / 1.297 GB, free: 130.7 MB / 0.6233 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01444/3.581, allocations: 9.739 MB / 1.306 GB, free: 121 MB / 0.6233 GB Notification: Performance of collectPreVariables (initialization): time 0.001857/3.583, allocations: 97.53 kB / 1.306 GB, free: 120.9 MB / 0.6233 GB Notification: Performance of collectInitialEqns (initialization): time 0.004203/3.587, allocations: 10.19 MB / 1.316 GB, free: 110.7 MB / 0.6233 GB Notification: Performance of collectInitialBindings (initialization): time 0.002935/3.59, allocations: 1.754 MB / 1.318 GB, free: 109 MB / 0.6233 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009985/3.6, allocations: 3.527 MB / 1.322 GB, free: 105.4 MB / 0.6233 GB Notification: Performance of setup shared object (initialization): time 4.314e-05/3.6, allocations: 304.5 kB / 1.322 GB, free: 105.1 MB / 0.6233 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01812/3.619, allocations: 15.72 MB / 1.337 GB, free: 89.41 MB / 0.6233 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02525/3.644, allocations: 25.78 MB / 1.362 GB, free: 58.65 MB / 0.6233 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3021/3.946, allocations: 43.55 MB / 1.405 GB, free: 201.4 MB / 0.6233 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002758/3.946, allocations: 109.5 kB / 1.405 GB, free: 201.4 MB / 0.6233 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.06045/4.007, allocations: 41.24 MB / 1.445 GB, free: 183.9 MB / 0.6233 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001983/4.007, allocations: 165.2 kB / 1.445 GB, free: 183.9 MB / 0.6233 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004075/4.007, allocations: 361.3 kB / 1.446 GB, free: 183.9 MB / 0.6233 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00182/4.009, allocations: 0.9277 MB / 1.447 GB, free: 183.8 MB / 0.6233 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01853/4.028, allocations: 4.971 MB / 1.452 GB, free: 183.1 MB / 0.6233 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006135/4.034, allocations: 6.889 MB / 1.458 GB, free: 176.7 MB / 0.6233 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01759/4.052, allocations: 2.064 MB / 1.46 GB, free: 175.4 MB / 0.6233 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004105/4.056, allocations: 0.9637 MB / 1.461 GB, free: 174.4 MB / 0.6233 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1622 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relative_b1.arrow.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b2.arrow.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_a2.arrow.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a1.arrow.twoHeadedArrow,relative_a1.arrow.headAtOrigin,relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2022): * Single equations (assignments): 2012 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01433/4.07, allocations: 7.441 MB / 1.468 GB, free: 167.9 MB / 0.6233 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002257/4.072, allocations: 0.8241 MB / 1.469 GB, free: 167.5 MB / 0.6233 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03576/4.108, allocations: 29.95 MB / 1.499 GB, free: 139.4 MB / 0.6233 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001036/4.108, allocations: 87.97 kB / 1.499 GB, free: 139.4 MB / 0.6233 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/4.108, allocations: 4 kB / 1.499 GB, free: 139.4 MB / 0.6233 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.614e-05/4.108, allocations: 19.92 kB / 1.499 GB, free: 139.3 MB / 0.6233 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08655/4.195, allocations: 71.34 MB / 1.568 GB, free: 65.11 MB / 0.6233 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.168e-05/4.195, allocations: 4 kB / 1.568 GB, free: 65.11 MB / 0.6233 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01186/4.207, allocations: 1.973 MB / 1.57 GB, free: 63.13 MB / 0.6233 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001707/4.209, allocations: 461.6 kB / 1.571 GB, free: 62.68 MB / 0.6233 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00234/4.211, allocations: 73.47 kB / 1.571 GB, free: 62.61 MB / 0.6233 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004952/4.216, allocations: 5.396 MB / 1.576 GB, free: 56.98 MB / 0.6233 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/4.216, allocations: 0 / 1.576 GB, free: 56.98 MB / 0.6233 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3401/4.556, allocations: 50.18 MB / 1.625 GB, free: 211.1 MB / 0.6233 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002368/4.558, allocations: 0.7833 MB / 1.626 GB, free: 211 MB / 0.6233 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003524/4.562, allocations: 73.36 kB / 1.626 GB, free: 210.9 MB / 0.6233 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01094/4.573, allocations: 1.534 MB / 1.627 GB, free: 210.9 MB / 0.6233 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002538/4.576, allocations: 237 kB / 1.628 GB, free: 210.8 MB / 0.6233 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009764/4.577, allocations: 112.9 kB / 1.628 GB, free: 210.8 MB / 0.6233 GB Notification: Performance of sorting global known variables: time 0.01005/4.587, allocations: 6.051 MB / 1.634 GB, free: 208.8 MB / 0.6233 GB Notification: Performance of sort global known variables: time 5.71e-07/4.587, allocations: 0 / 1.634 GB, free: 208.8 MB / 0.6233 GB Notification: Performance of remove unused functions: time 0.01722/4.604, allocations: 4.1 MB / 1.638 GB, free: 208.4 MB / 0.6233 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * 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 (404): * Single equations (assignments): 394 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.05914/4.663, allocations: 51.02 MB / 1.687 GB, free: 177.7 MB / 0.6233 GB Notification: Performance of simCode: created initialization part: time 0.0609/4.724, allocations: 46.82 MB / 1.733 GB, free: 132.9 MB / 0.6233 GB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/4.724, allocations: 4.188 kB / 1.733 GB, free: 132.9 MB / 0.6233 GB Notification: Performance of simCode: created simulation system equations: time 0.01578/4.74, allocations: 14.84 MB / 1.748 GB, free: 118 MB / 0.6233 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008345/4.748, allocations: 1.489 MB / 1.749 GB, free: 116.7 MB / 0.6233 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.516/5.264, allocations: 254.8 MB / 1.998 GB, free: 96.58 MB / 0.6233 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01769/5.282, allocations: 10.43 MB / 2.008 GB, free: 86.13 MB / 0.6233 GB Notification: Performance of simCode: alias equations: time 0.01992/5.302, allocations: 7.1 MB / 2.015 GB, free: 79.03 MB / 0.6233 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01489/5.317, allocations: 7.298 MB / 2.022 GB, free: 71.73 MB / 0.6233 GB Notification: Performance of SimCode: time 9.52e-07/5.317, allocations: 0 / 2.022 GB, free: 71.73 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5748/5.892, allocations: 241.1 MB / 2.258 GB, free: 79.87 MB / 0.6233 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001529/5.892, allocations: 237.7 kB / 2.258 GB, free: 79.61 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.115/13.01, allocations: 0 / 2.258 GB, free: 79.61 MB / 0.6233 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/RelativeSensor/RelativeSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches