Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",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.008016/0.008016, allocations: 104.9 kB / 15.87 MB, free: 6.242 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.001939/0.001939, allocations: 196.2 kB / 16.79 MB, free: 6.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 205.1 MB / 222.6 MB, free: 4.918 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.322/0.322, allocations: 43.5 MB / 313.5 MB, free: 8.641 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.91 kB / 382.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1062, allocations: 57.78 MB / 439.9 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.2527/0.359, allocations: 93.53 MB / 0.5209 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04852/0.4076, allocations: 19.71 MB / 0.5402 GB, free: 7.766 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0261/0.4337, allocations: 435 kB / 0.5406 GB, free: 7.699 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03447/0.4683, allocations: 22.46 MB / 0.5625 GB, free: 3.852 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01329/0.4816, allocations: 3.951 MB / 0.5664 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0114/0.4931, allocations: 4.706 MB / 0.571 GB, free: 11.17 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0206/0.5137, allocations: 19.18 MB / 0.5897 GB, free: 7.973 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.041/0.5547, allocations: 32.51 MB / 0.6215 GB, free: 7.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01063/0.5654, allocations: 6.528 MB / 0.6278 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4518/1.017, allocations: 9.977 MB / 0.6376 GB, free: 33.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006909/1.024, allocations: 1.66 MB / 0.6392 GB, free: 33.16 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01003/1.034, allocations: 3.077 MB / 0.6422 GB, free: 33.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01517/1.049, allocations: 8.463 MB / 0.6505 GB, free: 33.03 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02522/1.075, allocations: 9.691 MB / 0.6599 GB, free: 30.16 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03163/1.106, allocations: 33.51 MB / 0.6927 GB, free: 17.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/1.106, allocations: 0 / 0.6927 GB, free: 17.53 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.442e-06/1.106, allocations: 0 / 0.6927 GB, free: 17.53 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001075/1.107, allocations: 3.75 kB / 0.6927 GB, free: 17.53 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 0.04802/1.155, allocations: 19.42 MB / 0.7116 GB, free: 5.016 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/1.156, allocations: 11.19 kB / 0.7116 GB, free: 5.016 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01034/1.166, allocations: 2.972 MB / 0.7145 GB, free: 3.035 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1446/1.311, allocations: 13.85 MB / 0.7281 GB, free: 10.73 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02272/1.333, allocations: 10.24 MB / 0.7381 GB, free: 1.027 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001116/1.334, allocations: 1.314 MB / 0.7393 GB, free: 15.77 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006678/1.341, allocations: 1.743 MB / 0.741 GB, free: 14.1 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09184/1.433, allocations: 40.83 MB / 0.7809 GB, free: 4.316 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004961/1.434, allocations: 97.11 kB / 0.781 GB, free: 4.258 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004022/1.438, allocations: 0.7541 MB / 0.7817 GB, free: 3.566 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005424/1.443, allocations: 4.173 MB / 0.7858 GB, free: 15.45 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06748/1.51, allocations: 33.35 MB / 0.8184 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3862/1.897, allocations: 118.9 MB / 0.9345 GB, free: 162.4 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04945/1.946, allocations: 21.92 MB / 0.9559 GB, free: 156.8 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006447/1.953, allocations: 6.947 MB / 0.9627 GB, free: 153 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0313/1.984, allocations: 27.3 MB / 0.9894 GB, free: 134.3 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.894e-05/1.984, allocations: 80.08 kB / 0.9894 GB, free: 134.3 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=372): time 6.592e-06/1.984, allocations: 0 / 0.9894 GB, free: 134.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=486): time 1.072/3.057, allocations: 323.4 MB / 1.305 GB, free: 96.01 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/3.057, allocations: 285.7 kB / 1.306 GB, free: 95.68 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01119/3.068, allocations: 10.25 MB / 1.316 GB, free: 85.44 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.001825/3.07, allocations: 97.7 kB / 1.316 GB, free: 85.34 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.004532/3.074, allocations: 10.81 MB / 1.326 GB, free: 74.53 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.00291/3.077, allocations: 1.894 MB / 1.328 GB, free: 72.65 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006588/3.084, allocations: 3.711 MB / 1.332 GB, free: 68.92 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 3.584e-05/3.084, allocations: 305.1 kB / 1.332 GB, free: 68.62 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01699/3.101, allocations: 16.05 MB / 1.348 GB, free: 52.56 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2051/3.306, allocations: 26.66 MB / 1.374 GB, free: 208 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04762/3.354, allocations: 44.86 MB / 1.417 GB, free: 180.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005863/3.354, allocations: 107.1 kB / 1.418 GB, free: 180.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.06692/3.421, allocations: 42.42 MB / 1.459 GB, free: 162.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005469/3.422, allocations: 172.6 kB / 1.459 GB, free: 162.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009348/3.423, allocations: 375.3 kB / 1.46 GB, free: 162.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002575/3.425, allocations: 0.9569 MB / 1.46 GB, free: 162 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0189/3.444, allocations: 5.224 MB / 1.466 GB, free: 157.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006202/3.45, allocations: 6.435 MB / 1.472 GB, free: 151.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01678/3.467, allocations: 2.11 MB / 1.474 GB, free: 150.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003472/3.471, allocations: 1.021 MB / 1.475 GB, free: 149.5 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1713 * Number of states: 0 () * Number of discrete variables: 48 (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 (2149): * Single equations (assignments): 2139 * 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.01357/3.484, allocations: 7.844 MB / 1.483 GB, free: 142.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001984/3.486, allocations: 0.8728 MB / 1.483 GB, free: 142.2 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03543/3.522, allocations: 30.49 MB / 1.513 GB, free: 115.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001005/3.522, allocations: 93.06 kB / 1.513 GB, free: 115.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/3.522, allocations: 4 kB / 1.513 GB, free: 115.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.196e-05/3.522, allocations: 18.61 kB / 1.513 GB, free: 115.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07995/3.602, allocations: 72.82 MB / 1.584 GB, free: 40.05 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.22e-05/3.602, allocations: 4 kB / 1.584 GB, free: 40.05 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01035/3.612, allocations: 2.043 MB / 1.586 GB, free: 38 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/3.614, allocations: 466.5 kB / 1.587 GB, free: 37.54 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001739/3.615, allocations: 80.61 kB / 1.587 GB, free: 37.46 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004181/3.62, allocations: 5.044 MB / 1.592 GB, free: 32.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/3.62, allocations: 0 / 1.592 GB, free: 32.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2382/3.858, allocations: 50.96 MB / 1.642 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009387/3.867, allocations: 3.954 MB / 1.645 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003645/3.871, allocations: 77.42 kB / 1.646 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01054/3.881, allocations: 1.548 MB / 1.647 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002925/3.884, allocations: 262.5 kB / 1.647 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001677/3.886, allocations: 127 kB / 1.647 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01191/3.898, allocations: 6.365 MB / 1.654 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.41e-07/3.898, allocations: 1.094 kB / 1.654 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01834/3.916, allocations: 4.28 MB / 1.658 GB, free: 188 MB / 0.6075 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 (444): * Single equations (assignments): 434 * 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.05973/3.976, allocations: 51.8 MB / 1.708 GB, free: 150.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.04075/4.017, allocations: 35.37 MB / 1.743 GB, free: 118.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/4.017, allocations: 448 / 1.743 GB, free: 118.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01744/4.034, allocations: 15.08 MB / 1.758 GB, free: 103.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.014/4.048, allocations: 1.417 MB / 1.759 GB, free: 101.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4895/4.538, allocations: 269.8 MB / 2.023 GB, free: 43.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02058/4.559, allocations: 11.02 MB / 2.033 GB, free: 33.11 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.02043/4.579, allocations: 7.355 MB / 2.041 GB, free: 25.75 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01545/4.594, allocations: 7.782 MB / 2.048 GB, free: 17.96 MB / 0.6075 GB Notification: Performance of SimCode: time 8.91e-07/4.595, allocations: 0 / 2.048 GB, free: 17.96 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6684/5.263, allocations: 243.9 MB / 2.286 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001716/5.263, allocations: 230.6 kB / 2.287 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.53/11.79, allocations: 0 / 2.287 GB, free: 177.5 MB / 0.6075 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/RelativeSensor/RelativeSensor.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches