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.001324/0.001324, allocations: 104.1 kB / 16.4 MB, free: 6.504 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.001352/0.001353, allocations: 189.5 kB / 17.34 MB, free: 5.738 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.428/1.428, 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.2284/0.2284, allocations: 43.52 MB / 314.1 MB, free: 448 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.002247/0.002247, allocations: 73.47 kB / 441.3 MB, free: 6.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1169, allocations: 57.79 MB / 499.1 MB, free: 12.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.03142/0.1483, allocations: 27.33 MB / 0.5141 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02182/0.1702, allocations: 8.766 MB / 0.5227 GB, free: 8.012 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006947/0.1772, allocations: 223.5 kB / 0.5229 GB, free: 7.793 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2527/0.4298, allocations: 22.09 MB / 0.5445 GB, free: 3.223 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01031/0.4402, allocations: 4.131 MB / 0.5485 GB, free: 2.941 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009114/0.4494, allocations: 4.826 MB / 0.5532 GB, free: 2.824 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01481/0.4642, allocations: 11.19 MB / 0.5641 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04074/0.505, allocations: 32.8 MB / 0.5962 GB, free: 6.004 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01264/0.5177, allocations: 7.568 MB / 0.6036 GB, free: 14.78 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01478/0.5325, allocations: 9.547 MB / 0.6129 GB, free: 5.75 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006013/0.5385, allocations: 2.328 MB / 0.6152 GB, free: 3.422 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008764/0.5473, allocations: 3.638 MB / 0.6187 GB, free: 15.85 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01183/0.5592, allocations: 9.045 MB / 0.6275 GB, free: 6.812 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01795/0.5772, allocations: 10.43 MB / 0.6377 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04418/0.6214, allocations: 34.67 MB / 0.6716 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.049e-05/0.6214, allocations: 4 kB / 0.6716 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6214, allocations: 0 / 0.6716 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.001076/0.6225, allocations: 4 kB / 0.6716 GB, free: 10.16 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.05738/0.6799, allocations: 19.87 MB / 0.691 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.448e-05/0.68, allocations: 11.89 kB / 0.691 GB, free: 6.332 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01114/0.6912, allocations: 2.973 MB / 0.6939 GB, free: 3.41 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1863/0.8775, allocations: 13.94 MB / 0.7075 GB, free: 5.445 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02522/0.9028, allocations: 10.35 MB / 0.7176 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001396/0.9042, allocations: 1.319 MB / 0.7189 GB, free: 9.816 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00647/0.9107, allocations: 1.74 MB / 0.7206 GB, free: 8.141 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4853/1.396, allocations: 40.82 MB / 0.7605 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008226/1.397, allocations: 99 kB / 0.7606 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005347/1.402, allocations: 0.7612 MB / 0.7613 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006855/1.409, allocations: 4.173 MB / 0.7654 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07061/1.48, allocations: 33.35 MB / 0.798 GB, free: 161.2 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1438/1.624, allocations: 118.3 MB / 0.9135 GB, free: 50.75 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05491/1.679, allocations: 21.91 MB / 0.9349 GB, free: 28.37 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006979/1.686, allocations: 6.949 MB / 0.9417 GB, free: 21.4 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03639/1.722, allocations: 27.32 MB / 0.9684 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.612e-05/1.722, allocations: 80.91 kB / 0.9684 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=372): time 7.384e-06/1.722, allocations: 0 / 0.9684 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=486): time 1.748/3.47, allocations: 324.2 MB / 1.285 GB, free: 187.1 MB / 0.6389 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.947e-05/3.471, allocations: 286.7 kB / 1.285 GB, free: 186.9 MB / 0.6389 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0158/3.486, allocations: 10.27 MB / 1.295 GB, free: 183.3 MB / 0.6389 GB Notification: Performance of collectPreVariables (initialization): time 0.001894/3.488, allocations: 101.7 kB / 1.295 GB, free: 183.2 MB / 0.6389 GB Notification: Performance of collectInitialEqns (initialization): time 0.006119/3.494, allocations: 11.27 MB / 1.306 GB, free: 175.5 MB / 0.6389 GB Notification: Performance of collectInitialBindings (initialization): time 0.003497/3.498, allocations: 1.976 MB / 1.308 GB, free: 174.1 MB / 0.6389 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01087/3.509, allocations: 3.734 MB / 1.312 GB, free: 172.3 MB / 0.6389 GB Notification: Performance of setup shared object (initialization): time 4.885e-05/3.509, allocations: 308.9 kB / 1.312 GB, free: 172 MB / 0.6389 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.021/3.53, allocations: 16.04 MB / 1.328 GB, free: 165.3 MB / 0.6389 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02487/3.555, allocations: 26.67 MB / 1.354 GB, free: 140.9 MB / 0.6389 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04282/3.598, allocations: 44.87 MB / 1.398 GB, free: 93.38 MB / 0.6389 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002933/3.598, allocations: 108 kB / 1.398 GB, free: 93.28 MB / 0.6389 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.06391/3.662, allocations: 42.47 MB / 1.439 GB, free: 50.8 MB / 0.6389 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005941/3.663, allocations: 168.7 kB / 1.44 GB, free: 50.64 MB / 0.6389 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007065/3.663, allocations: 376 kB / 1.44 GB, free: 50.27 MB / 0.6389 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00232/3.666, allocations: 0.9594 MB / 1.441 GB, free: 49.3 MB / 0.6389 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02114/3.687, allocations: 5.22 MB / 1.446 GB, free: 44.07 MB / 0.6389 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006925/3.694, allocations: 6.929 MB / 1.453 GB, free: 36.88 MB / 0.6389 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01989/3.714, allocations: 2.106 MB / 1.455 GB, free: 34.77 MB / 0.6389 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003748/3.718, allocations: 1.019 MB / 1.456 GB, free: 33.75 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.01529/3.733, allocations: 7.849 MB / 1.463 GB, free: 25.88 MB / 0.6389 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003439/3.736, allocations: 0.9274 MB / 1.464 GB, free: 24.95 MB / 0.6389 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3179/4.054, allocations: 30.47 MB / 1.494 GB, free: 181.9 MB / 0.6389 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001882/4.054, allocations: 91.28 kB / 1.494 GB, free: 181.8 MB / 0.6389 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.846e-05/4.054, allocations: 9.141 kB / 1.494 GB, free: 181.8 MB / 0.6389 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001305/4.055, allocations: 22.23 kB / 1.494 GB, free: 181.8 MB / 0.6389 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1066/4.161, allocations: 72.63 MB / 1.565 GB, free: 141.8 MB / 0.6389 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.772e-05/4.161, allocations: 3.938 kB / 1.565 GB, free: 141.8 MB / 0.6389 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01309/4.174, allocations: 2.047 MB / 1.567 GB, free: 141.7 MB / 0.6389 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/4.176, allocations: 459.8 kB / 1.568 GB, free: 141.6 MB / 0.6389 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002343/4.178, allocations: 88.31 kB / 1.568 GB, free: 141.6 MB / 0.6389 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005372/4.184, allocations: 5.41 MB / 1.573 GB, free: 137.8 MB / 0.6389 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/4.184, allocations: 0 / 1.573 GB, free: 137.8 MB / 0.6389 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0602/4.244, allocations: 51 MB / 1.623 GB, free: 90.47 MB / 0.6389 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008414/4.253, allocations: 4.009 MB / 1.627 GB, free: 86.96 MB / 0.6389 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005259/4.258, allocations: 75.94 kB / 1.627 GB, free: 86.89 MB / 0.6389 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01258/4.27, allocations: 1.551 MB / 1.628 GB, free: 85.35 MB / 0.6389 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002908/4.273, allocations: 255 kB / 1.629 GB, free: 85.1 MB / 0.6389 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001784/4.275, allocations: 131.8 kB / 1.629 GB, free: 84.97 MB / 0.6389 GB Notification: Performance of sorting global known variables: time 0.01075/4.286, allocations: 6.357 MB / 1.635 GB, free: 78.64 MB / 0.6389 GB Notification: Performance of sort global known variables: time 2.6e-07/4.286, allocations: 0 / 1.635 GB, free: 78.64 MB / 0.6389 GB Notification: Performance of remove unused functions: time 0.01758/4.304, allocations: 4.286 MB / 1.639 GB, free: 74.37 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.061/4.365, allocations: 51.85 MB / 1.69 GB, free: 23.02 MB / 0.6389 GB Notification: Performance of simCode: created initialization part: time 0.2883/4.653, allocations: 35.41 MB / 1.724 GB, free: 215.3 MB / 0.6545 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/4.653, allocations: 2.719 kB / 1.724 GB, free: 215.3 MB / 0.6545 GB Notification: Performance of simCode: created simulation system equations: time 0.02147/4.674, allocations: 15.08 MB / 1.739 GB, free: 211.3 MB / 0.6545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01361/4.688, allocations: 1.53 MB / 1.741 GB, free: 210.7 MB / 0.6545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2878/4.976, allocations: 223.4 MB / 1.959 GB, free: 3.207 MB / 0.6545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02676/5.003, allocations: 11.02 MB / 1.969 GB, free: 8.152 MB / 0.6702 GB Notification: Performance of simCode: alias equations: time 0.02428/5.027, allocations: 7.364 MB / 1.977 GB, free: 0.7773 MB / 0.6702 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2804/5.307, allocations: 7.781 MB / 1.984 GB, free: 216.2 MB / 0.6702 GB Notification: Performance of SimCode: time 1.182e-06/5.307, allocations: 2.562 kB / 1.984 GB, free: 216.2 MB / 0.6702 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5559/5.863, allocations: 253.7 MB / 2.232 GB, free: 196.8 MB / 0.6702 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.58/46.44, allocations: 16.61 kB / 2.232 GB, free: 196.8 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 & /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","/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