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.001731/0.001731, allocations: 110.9 kB / 16.41 MB, free: 6.492 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.001875/0.001876, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.502/1.502, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2496/0.2496, allocations: 43.52 MB / 314.1 MB, free: 476 kB / 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.002042/0.002043, allocations: 68.45 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1199, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.03149/0.1515, allocations: 27.33 MB / 0.5141 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02095/0.1725, allocations: 8.767 MB / 0.5227 GB, free: 8.059 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006306/0.1788, allocations: 223.5 kB / 0.5229 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3096/0.4885, allocations: 22.09 MB / 0.5445 GB, free: 3.215 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01641/0.505, allocations: 4.135 MB / 0.5485 GB, free: 2.934 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01338/0.5184, allocations: 4.821 MB / 0.5532 GB, free: 2.816 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02284/0.5413, allocations: 11.19 MB / 0.5641 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05191/0.5933, allocations: 32.79 MB / 0.5962 GB, free: 6.039 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01751/0.6108, allocations: 7.571 MB / 0.6035 GB, free: 14.81 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01898/0.6299, allocations: 9.551 MB / 0.6129 GB, free: 5.777 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00878/0.6387, allocations: 2.324 MB / 0.6151 GB, free: 3.453 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01143/0.6501, allocations: 3.634 MB / 0.6187 GB, free: 15.88 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0147/0.6649, allocations: 9.049 MB / 0.6275 GB, free: 6.844 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02408/0.689, allocations: 10.43 MB / 0.6377 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05059/0.7396, allocations: 34.68 MB / 0.6716 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.08e-05/0.7397, allocations: 0 / 0.6716 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.254e-06/0.7397, allocations: 4 kB / 0.6716 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.00139/0.7411, allocations: 0 / 0.6716 GB, free: 10.2 MB / 0.5137 GB 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.06621/0.8073, allocations: 19.86 MB / 0.691 GB, free: 6.383 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/0.8074, allocations: 11.89 kB / 0.691 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0122/0.8196, allocations: 2.974 MB / 0.6939 GB, free: 3.449 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1875/1.007, allocations: 13.95 MB / 0.7075 GB, free: 5.473 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02788/1.035, allocations: 10.35 MB / 0.7176 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001358/1.037, allocations: 1.312 MB / 0.7189 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006854/1.043, allocations: 1.74 MB / 0.7206 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6216/1.665, allocations: 40.82 MB / 0.7605 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009633/1.666, allocations: 102.1 kB / 0.7606 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0065/1.673, allocations: 0.7601 MB / 0.7613 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007756/1.68, allocations: 4.167 MB / 0.7654 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08068/1.761, allocations: 33.36 MB / 0.798 GB, free: 161.2 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1587/1.92, allocations: 118.3 MB / 0.9135 GB, free: 50.83 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05266/1.972, allocations: 21.91 MB / 0.9349 GB, free: 28.45 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006879/1.979, allocations: 6.95 MB / 0.9417 GB, free: 21.48 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0369/2.016, allocations: 27.31 MB / 0.9684 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.448e-05/2.016, allocations: 76.98 kB / 0.9684 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=372): time 7.363e-06/2.017, allocations: 0 / 0.9684 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of matching and sorting (n=486): time 1.912/3.928, allocations: 324.2 MB / 1.285 GB, free: 187.2 MB / 0.6389 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/3.929, allocations: 276.4 kB / 1.285 GB, free: 186.9 MB / 0.6389 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01949/3.948, allocations: 10.27 MB / 1.295 GB, free: 183.4 MB / 0.6389 GB Notification: Performance of collectPreVariables (initialization): time 0.002372/3.951, allocations: 106.6 kB / 1.295 GB, free: 183.3 MB / 0.6389 GB Notification: Performance of collectInitialEqns (initialization): time 0.008396/3.959, allocations: 11.27 MB / 1.306 GB, free: 175.5 MB / 0.6389 GB Notification: Performance of collectInitialBindings (initialization): time 0.003975/3.963, allocations: 1.97 MB / 1.308 GB, free: 174.1 MB / 0.6389 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01199/3.975, allocations: 3.743 MB / 1.312 GB, free: 172.4 MB / 0.6389 GB Notification: Performance of setup shared object (initialization): time 7.585e-05/3.975, allocations: 305.1 kB / 1.312 GB, free: 172.1 MB / 0.6389 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02039/3.995, allocations: 16.05 MB / 1.328 GB, free: 165.4 MB / 0.6389 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02535/4.021, allocations: 26.67 MB / 1.354 GB, free: 141 MB / 0.6389 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04552/4.066, allocations: 44.86 MB / 1.398 GB, free: 93.51 MB / 0.6389 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004042/4.067, allocations: 108 kB / 1.398 GB, free: 93.4 MB / 0.6389 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.06438/4.131, allocations: 42.47 MB / 1.439 GB, free: 50.93 MB / 0.6389 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002434/4.132, allocations: 164.2 kB / 1.44 GB, free: 50.77 MB / 0.6389 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004375/4.132, allocations: 380 kB / 1.44 GB, free: 50.4 MB / 0.6389 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001839/4.134, allocations: 0.9514 MB / 1.441 GB, free: 49.44 MB / 0.6389 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0208/4.155, allocations: 5.228 MB / 1.446 GB, free: 44.2 MB / 0.6389 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006268/4.161, allocations: 6.938 MB / 1.453 GB, free: 36.99 MB / 0.6389 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02242/4.183, allocations: 2.106 MB / 1.455 GB, free: 34.89 MB / 0.6389 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005109/4.189, allocations: 1.019 MB / 1.456 GB, free: 33.87 MB / 0.6389 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.0186/4.207, allocations: 7.841 MB / 1.463 GB, free: 26.01 MB / 0.6389 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003105/4.21, allocations: 0.9274 MB / 1.464 GB, free: 25.08 MB / 0.6389 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3559/4.566, allocations: 30.47 MB / 1.494 GB, free: 182.1 MB / 0.6389 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001835/4.567, allocations: 95.23 kB / 1.494 GB, free: 182.1 MB / 0.6389 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-05/4.567, allocations: 11.38 kB / 1.494 GB, free: 182.1 MB / 0.6389 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001223/4.567, allocations: 21.47 kB / 1.494 GB, free: 182.1 MB / 0.6389 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09982/4.667, allocations: 72.63 MB / 1.565 GB, free: 142 MB / 0.6389 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.429e-05/4.667, allocations: 3.875 kB / 1.565 GB, free: 142 MB / 0.6389 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01229/4.679, allocations: 2.05 MB / 1.567 GB, free: 142 MB / 0.6389 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/4.68, allocations: 459.7 kB / 1.568 GB, free: 141.9 MB / 0.6389 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00196/4.682, allocations: 85.2 kB / 1.568 GB, free: 141.8 MB / 0.6389 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004643/4.687, allocations: 5.406 MB / 1.573 GB, free: 138 MB / 0.6389 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/4.687, allocations: 0 / 1.573 GB, free: 138 MB / 0.6389 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06004/4.747, allocations: 51.01 MB / 1.623 GB, free: 90.6 MB / 0.6389 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008106/4.755, allocations: 4.003 MB / 1.627 GB, free: 87.11 MB / 0.6389 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00444/4.76, allocations: 85.94 kB / 1.627 GB, free: 87.03 MB / 0.6389 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01236/4.772, allocations: 1.55 MB / 1.628 GB, free: 85.48 MB / 0.6389 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003032/4.775, allocations: 257 kB / 1.629 GB, free: 85.23 MB / 0.6389 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002143/4.777, allocations: 124 kB / 1.629 GB, free: 85.11 MB / 0.6389 GB Notification: Performance of sorting global known variables: time 0.01338/4.791, allocations: 6.367 MB / 1.635 GB, free: 78.77 MB / 0.6389 GB Notification: Performance of sort global known variables: time 9.92e-07/4.791, allocations: 2 kB / 1.635 GB, free: 78.77 MB / 0.6389 GB Notification: Performance of remove unused functions: time 0.02028/4.811, allocations: 4.281 MB / 1.639 GB, free: 74.5 MB / 0.6389 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.06283/4.874, allocations: 51.85 MB / 1.69 GB, free: 23.16 MB / 0.6389 GB Notification: Performance of simCode: created initialization part: time 0.3223/5.196, allocations: 35.4 MB / 1.724 GB, free: 214.6 MB / 0.6545 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/5.196, allocations: 7.188 kB / 1.724 GB, free: 214.6 MB / 0.6545 GB Notification: Performance of simCode: created simulation system equations: time 0.02597/5.222, allocations: 15.08 MB / 1.739 GB, free: 210.6 MB / 0.6545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01705/5.239, allocations: 1.54 MB / 1.741 GB, free: 209.9 MB / 0.6545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2981/5.537, allocations: 223.4 MB / 1.959 GB, free: 3.211 MB / 0.6545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02545/5.563, allocations: 11.02 MB / 1.969 GB, free: 8.152 MB / 0.6702 GB Notification: Performance of simCode: alias equations: time 0.02596/5.589, allocations: 7.356 MB / 1.977 GB, free: 0.7852 MB / 0.6702 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2964/5.885, allocations: 7.786 MB / 1.984 GB, free: 215.4 MB / 0.6702 GB Notification: Performance of SimCode: time 2.184e-06/5.885, allocations: 2.281 kB / 1.984 GB, free: 215.4 MB / 0.6702 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5954/6.481, allocations: 253.8 MB / 2.232 GB, free: 195.9 MB / 0.6702 GB Notification: Performance of buildModelFMU: Generate platform static: time 46.27/52.75, allocations: 6.5 kB / 2.232 GB, free: 195.9 MB / 0.6702 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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/RelativeSensor/RelativeSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches