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.000735/0.000735, allocations: 96.7 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000885/0.0008851, allocations: 168.1 kB / 16.57 MB, free: 6.062 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.581/1.581, allocations: 205.4 MB / 222.7 MB, free: 5.633 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.378/0.378, allocations: 43.55 MB / 314.6 MB, free: 9.086 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.0004922/0.0004924, allocations: 14.97 kB / 384 MB, free: 8.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1268, allocations: 58.85 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.3049/0.4317, allocations: 84.69 MB / 0.5152 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04812/0.4799, allocations: 18.76 MB / 0.5335 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02636/0.5063, allocations: 430.6 kB / 0.5339 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01963/0.526, allocations: 4.591 MB / 0.5384 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04205/0.5681, allocations: 12.99 MB / 0.5511 GB, free: 1.512 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01067/0.5788, allocations: 1.759 MB / 0.5528 GB, free: 15.75 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.05969/0.6385, allocations: 43.12 MB / 0.5949 GB, free: 4.57 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3812/1.02, allocations: 39.87 MB / 0.6339 GB, free: 42.12 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01009/1.03, allocations: 4.002 MB / 0.6378 GB, free: 42.12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01184/1.042, allocations: 6.329 MB / 0.6439 GB, free: 42.12 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003745/1.045, allocations: 0.5546 MB / 0.6445 GB, free: 42.12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007865/1.053, allocations: 1.702 MB / 0.6461 GB, free: 42.12 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01452/1.068, allocations: 6.576 MB / 0.6526 GB, free: 42.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01053/1.079, allocations: 3.302 MB / 0.6558 GB, free: 42.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04021/1.119, allocations: 28.22 MB / 0.6834 GB, free: 32.05 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/1.119, allocations: 1.859 kB / 0.6834 GB, free: 32.05 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.876e-06/1.119, allocations: 0 / 0.6834 GB, free: 32.05 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.00165/1.12, allocations: 0 / 0.6834 GB, free: 32.05 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.05052/1.171, allocations: 15.44 MB / 0.6984 GB, free: 23.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/1.171, allocations: 13.61 kB / 0.6984 GB, free: 23.34 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01266/1.184, allocations: 2.97 MB / 0.7013 GB, free: 22.6 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1343/1.318, allocations: 14.2 MB / 0.7152 GB, free: 15.72 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02142/1.34, allocations: 10.13 MB / 0.7251 GB, free: 9.121 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000975/1.341, allocations: 1.315 MB / 0.7264 GB, free: 8.379 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008883/1.349, allocations: 1.736 MB / 0.7281 GB, free: 7.227 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.108/1.457, allocations: 40.81 MB / 0.7679 GB, free: 9.551 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007524/1.458, allocations: 98.27 kB / 0.768 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007345/1.466, allocations: 0.7562 MB / 0.7688 GB, free: 9.316 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006511/1.472, allocations: 4.182 MB / 0.7728 GB, free: 5.902 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08045/1.553, allocations: 33.31 MB / 0.8054 GB, free: 8.43 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4543/2.007, allocations: 118.9 MB / 0.9215 GB, free: 130.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05006/2.057, allocations: 22.19 MB / 0.9431 GB, free: 124.8 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007633/2.065, allocations: 6.937 MB / 0.9499 GB, free: 121.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03851/2.103, allocations: 27.29 MB / 0.9766 GB, free: 108 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/2.103, allocations: 77.95 kB / 0.9766 GB, free: 107.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=372): time 7.945e-06/2.103, allocations: 0 / 0.9766 GB, free: 107.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=486): time 1.38/3.483, allocations: 324.8 MB / 1.294 GB, free: 189.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/3.484, allocations: 287.6 kB / 1.294 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01654/3.5, allocations: 10.19 MB / 1.304 GB, free: 188.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.002408/3.503, allocations: 104.1 kB / 1.304 GB, free: 188.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.00747/3.51, allocations: 10.81 MB / 1.315 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00341/3.514, allocations: 1.899 MB / 1.317 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00235/3.516, allocations: 345.7 kB / 1.317 GB, free: 181 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.001073/3.517, allocations: 1.027 MB / 1.318 GB, free: 180.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02324/3.54, allocations: 15.98 MB / 1.334 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0318/3.572, allocations: 26.6 MB / 1.36 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02702/3.599, allocations: 19.99 MB / 1.379 GB, free: 143.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003673/3.6, allocations: 109.4 kB / 1.379 GB, free: 143.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.06706/3.667, allocations: 42.28 MB / 1.42 GB, free: 111.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002599/3.667, allocations: 164.9 kB / 1.421 GB, free: 111.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005672/3.668, allocations: 380.1 kB / 1.421 GB, free: 110.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001853/3.669, allocations: 1.002 MB / 1.422 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01984/3.689, allocations: 5.223 MB / 1.427 GB, free: 105.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006115/3.695, allocations: 6.417 MB / 1.433 GB, free: 99.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.021/3.716, allocations: 2.109 MB / 1.435 GB, free: 98.29 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005955/3.722, allocations: 1.029 MB / 1.436 GB, free: 97.29 MB / 0.5762 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02235/3.745, allocations: 7.837 MB / 1.444 GB, free: 90.35 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002575/3.747, allocations: 0.8676 MB / 1.445 GB, free: 89.47 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04055/3.788, allocations: 30.47 MB / 1.475 GB, free: 59.31 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001189/3.788, allocations: 103.7 kB / 1.475 GB, free: 59.21 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.907e-05/3.788, allocations: 4.812 kB / 1.475 GB, free: 59.21 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.612e-05/3.788, allocations: 19.92 kB / 1.475 GB, free: 59.19 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3797/4.168, allocations: 72.78 MB / 1.546 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-05/4.168, allocations: 1.812 kB / 1.546 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01283/4.181, allocations: 2.047 MB / 1.548 GB, free: 157.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/4.182, allocations: 461.5 kB / 1.548 GB, free: 157.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002007/4.184, allocations: 82.39 kB / 1.548 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004951/4.189, allocations: 5.036 MB / 1.553 GB, free: 154 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/4.189, allocations: 0.5625 kB / 1.553 GB, free: 154 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06472/4.254, allocations: 50.91 MB / 1.603 GB, free: 126.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01103/4.265, allocations: 3.968 MB / 1.607 GB, free: 123 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004469/4.27, allocations: 78.19 kB / 1.607 GB, free: 122.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01144/4.281, allocations: 1.593 MB / 1.608 GB, free: 122.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002632/4.284, allocations: 255.7 kB / 1.609 GB, free: 121.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001901/4.286, allocations: 130.2 kB / 1.609 GB, free: 121.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.01538/4.301, allocations: 6.302 MB / 1.615 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.51e-07/4.301, allocations: 3.875 kB / 1.615 GB, free: 116.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.02227/4.323, allocations: 4.288 MB / 1.619 GB, free: 112.3 MB / 0.5762 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06544/4.389, allocations: 51.75 MB / 1.67 GB, free: 63.93 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.04948/4.438, allocations: 35.28 MB / 1.704 GB, free: 28.77 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/4.438, allocations: 0.625 kB / 1.704 GB, free: 28.77 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.2643/4.703, allocations: 15.06 MB / 1.719 GB, free: 196.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01273/4.716, allocations: 1.408 MB / 1.72 GB, free: 196.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2844/5, allocations: 175.4 MB / 1.892 GB, free: 59.75 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02507/5.025, allocations: 11.03 MB / 1.902 GB, free: 48.68 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.02456/5.05, allocations: 7.357 MB / 1.91 GB, free: 41.31 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02004/5.07, allocations: 7.782 MB / 1.917 GB, free: 33.53 MB / 0.5762 GB Notification: Performance of SimCode: time 1.953e-06/5.07, allocations: 0 / 1.917 GB, free: 33.53 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8638/5.934, allocations: 272.4 MB / 2.183 GB, free: 121.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001379/5.934, allocations: 214.2 kB / 2.183 GB, free: 121.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.372/13.31, allocations: 0 / 2.183 GB, free: 121.5 MB / 0.5762 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat