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.00136/0.001359, allocations: 104.8 kB / 16.4 MB, free: 6.457 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.001354/0.001354, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.377/1.377, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2131/0.2131, allocations: 43.53 MB / 314.1 MB, free: 440 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.001388/0.001388, allocations: 70.03 kB / 441.3 MB, free: 6.121 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1088, allocations: 57.78 MB / 499.1 MB, free: 12.26 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.02653/0.1353, allocations: 27.34 MB / 0.5141 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01985/0.1552, allocations: 8.759 MB / 0.5227 GB, free: 8.016 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006764/0.162, allocations: 223.5 kB / 0.5229 GB, free: 7.797 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.271/0.4331, allocations: 22.09 MB / 0.5445 GB, free: 3.203 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01065/0.4438, allocations: 4.221 MB / 0.5486 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0117/0.4556, allocations: 4.82 MB / 0.5533 GB, free: 2.805 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02156/0.4771, allocations: 11.2 MB / 0.5642 GB, free: 0.8125 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05748/0.5347, allocations: 32.79 MB / 0.5962 GB, free: 5.918 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01649/0.5512, allocations: 7.6 MB / 0.6037 GB, free: 14.66 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01595/0.5672, allocations: 9.557 MB / 0.613 GB, free: 5.629 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008732/0.576, allocations: 2.328 MB / 0.6153 GB, free: 3.301 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01061/0.5867, allocations: 3.631 MB / 0.6188 GB, free: 15.73 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01388/0.6006, allocations: 9.067 MB / 0.6277 GB, free: 6.676 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02031/0.6209, allocations: 10.43 MB / 0.6379 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04496/0.6659, allocations: 34.68 MB / 0.6717 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.666, allocations: 4 kB / 0.6717 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.284e-06/0.666, allocations: 0 / 0.6717 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.001261/0.6672, allocations: 0 / 0.6717 GB, free: 10.04 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.05569/0.7229, allocations: 19.87 MB / 0.6911 GB, free: 6.219 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.723, allocations: 11.89 kB / 0.6911 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01064/0.7337, allocations: 2.976 MB / 0.694 GB, free: 3.281 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1689/0.9026, allocations: 13.95 MB / 0.7077 GB, free: 5.312 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02587/0.9285, allocations: 10.36 MB / 0.7178 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001214/0.9298, allocations: 1.316 MB / 0.7191 GB, free: 9.684 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006437/0.9362, allocations: 1.741 MB / 0.7208 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4905/1.427, allocations: 40.82 MB / 0.7606 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006772/1.428, allocations: 104.1 kB / 0.7607 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005188/1.433, allocations: 0.758 MB / 0.7615 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007225/1.44, allocations: 4.17 MB / 0.7655 GB, free: 172.1 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06904/1.509, allocations: 33.36 MB / 0.7981 GB, free: 161.1 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1419/1.651, allocations: 118.3 MB / 0.9136 GB, free: 50.62 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05375/1.705, allocations: 21.91 MB / 0.935 GB, free: 28.24 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006851/1.712, allocations: 6.954 MB / 0.9418 GB, free: 21.27 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03787/1.75, allocations: 27.32 MB / 0.9685 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.284e-05/1.75, allocations: 80.92 kB / 0.9686 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=372): time 6.583e-06/1.75, allocations: 0 / 0.9686 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=486): time 1.669/3.419, allocations: 324.2 MB / 1.285 GB, free: 187 MB / 0.6389 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.952e-05/3.419, allocations: 286.8 kB / 1.285 GB, free: 186.7 MB / 0.6389 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01443/3.433, allocations: 10.27 MB / 1.296 GB, free: 183.2 MB / 0.6389 GB Notification: Performance of collectPreVariables (initialization): time 0.001885/3.435, allocations: 97.36 kB / 1.296 GB, free: 183.1 MB / 0.6389 GB Notification: Performance of collectInitialEqns (initialization): time 0.005357/3.44, allocations: 11.27 MB / 1.307 GB, free: 175.4 MB / 0.6389 GB Notification: Performance of collectInitialBindings (initialization): time 0.003072/3.444, allocations: 1.974 MB / 1.309 GB, free: 173.9 MB / 0.6389 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007424/3.451, allocations: 3.738 MB / 1.312 GB, free: 172.2 MB / 0.6389 GB Notification: Performance of setup shared object (initialization): time 5.053e-05/3.451, allocations: 305.1 kB / 1.312 GB, free: 171.9 MB / 0.6389 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01879/3.47, allocations: 16.05 MB / 1.328 GB, free: 165.2 MB / 0.6389 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02393/3.494, allocations: 26.67 MB / 1.354 GB, free: 140.7 MB / 0.6389 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03995/3.534, allocations: 44.86 MB / 1.398 GB, free: 93.27 MB / 0.6389 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002287/3.534, allocations: 112 kB / 1.398 GB, free: 93.16 MB / 0.6389 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.05635/3.59, allocations: 42.46 MB / 1.44 GB, free: 50.69 MB / 0.6389 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002139/3.591, allocations: 171.4 kB / 1.44 GB, free: 50.53 MB / 0.6389 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003233/3.591, allocations: 376 kB / 1.44 GB, free: 50.16 MB / 0.6389 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/3.593, allocations: 0.9669 MB / 1.441 GB, free: 49.19 MB / 0.6389 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01948/3.612, allocations: 5.213 MB / 1.446 GB, free: 43.96 MB / 0.6389 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005789/3.618, allocations: 6.936 MB / 1.453 GB, free: 36.75 MB / 0.6389 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01837/3.636, allocations: 2.102 MB / 1.455 GB, free: 34.65 MB / 0.6389 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004023/3.64, allocations: 1.023 MB / 1.456 GB, free: 33.62 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.01685/3.657, allocations: 7.843 MB / 1.464 GB, free: 25.77 MB / 0.6389 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002975/3.66, allocations: 0.9234 MB / 1.465 GB, free: 24.84 MB / 0.6389 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2875/3.948, allocations: 30.48 MB / 1.494 GB, free: 181.9 MB / 0.6389 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000168/3.948, allocations: 93.91 kB / 1.494 GB, free: 181.9 MB / 0.6389 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-05/3.948, allocations: 9.578 kB / 1.494 GB, free: 181.9 MB / 0.6389 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.983e-05/3.948, allocations: 23.41 kB / 1.494 GB, free: 181.9 MB / 0.6389 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09033/4.038, allocations: 72.63 MB / 1.565 GB, free: 141.8 MB / 0.6389 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.521e-05/4.038, allocations: 0 / 1.565 GB, free: 141.8 MB / 0.6389 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01228/4.051, allocations: 2.051 MB / 1.567 GB, free: 141.7 MB / 0.6389 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/4.052, allocations: 459.3 kB / 1.568 GB, free: 141.6 MB / 0.6389 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00133/4.053, allocations: 97.94 kB / 1.568 GB, free: 141.6 MB / 0.6389 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004282/4.058, allocations: 5.393 MB / 1.573 GB, free: 137.8 MB / 0.6389 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/4.058, allocations: 7.656 kB / 1.573 GB, free: 137.8 MB / 0.6389 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05427/4.112, allocations: 51 MB / 1.623 GB, free: 90.32 MB / 0.6389 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01101/4.123, allocations: 4.004 MB / 1.627 GB, free: 86.82 MB / 0.6389 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003571/4.127, allocations: 87.75 kB / 1.627 GB, free: 86.74 MB / 0.6389 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01164/4.138, allocations: 1.548 MB / 1.628 GB, free: 85.2 MB / 0.6389 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002602/4.141, allocations: 249 kB / 1.629 GB, free: 84.96 MB / 0.6389 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001056/4.142, allocations: 135.1 kB / 1.629 GB, free: 84.83 MB / 0.6389 GB Notification: Performance of sorting global known variables: time 0.009853/4.152, allocations: 6.367 MB / 1.635 GB, free: 78.49 MB / 0.6389 GB Notification: Performance of sort global known variables: time 3.5e-07/4.152, allocations: 0 / 1.635 GB, free: 78.49 MB / 0.6389 GB Notification: Performance of remove unused functions: time 0.01947/4.171, allocations: 4.285 MB / 1.639 GB, free: 74.22 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.05498/4.226, allocations: 51.85 MB / 1.69 GB, free: 22.88 MB / 0.6389 GB Notification: Performance of simCode: created initialization part: time 0.2683/4.495, allocations: 35.41 MB / 1.724 GB, free: 214.2 MB / 0.6545 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/4.495, allocations: 1.812 kB / 1.724 GB, free: 214.2 MB / 0.6545 GB Notification: Performance of simCode: created simulation system equations: time 0.02014/4.515, allocations: 15.07 MB / 1.739 GB, free: 210.2 MB / 0.6545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01124/4.526, allocations: 1.529 MB / 1.741 GB, free: 209.5 MB / 0.6545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2573/4.783, allocations: 223.4 MB / 1.959 GB, free: 3.012 MB / 0.6545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02211/4.806, allocations: 11.02 MB / 1.97 GB, free: 7.949 MB / 0.6702 GB Notification: Performance of simCode: alias equations: time 0.01981/4.825, allocations: 7.36 MB / 1.977 GB, free: 0.5781 MB / 0.6702 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2731/5.099, allocations: 7.783 MB / 1.984 GB, free: 214.9 MB / 0.6702 GB Notification: Performance of SimCode: time 1.402e-06/5.099, allocations: 0 / 1.984 GB, free: 214.9 MB / 0.6702 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.568/5.667, allocations: 253.7 MB / 2.232 GB, free: 195.6 MB / 0.6702 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.29/43.95, allocations: 8.625 kB / 2.232 GB, free: 195.5 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