Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001616/0.001616, allocations: 188.8 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.001099, allocations: 98.81 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2948/0.2948, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007199/0.0007198, allocations: 12 kB / 431.5 MB, free: 20.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.127, allocations: 58.86 MB / 490.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.4588/0.5859, allocations: 79.74 MB / 0.5567 GB, free: 2.078 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06336/0.6493, allocations: 19.62 MB / 0.5759 GB, free: 3.734 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02231/0.6716, allocations: 430 kB / 0.5763 GB, free: 3.668 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01811/0.6898, allocations: 4.242 MB / 0.5804 GB, free: 15.92 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04944/0.7393, allocations: 10.64 MB / 0.5908 GB, free: 5.258 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01168/0.751, allocations: 1.841 MB / 0.5926 GB, free: 3.414 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.08223/0.8333, allocations: 29.37 MB / 0.6213 GB, free: 6.012 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08877/0.9222, allocations: 39.56 MB / 0.6599 GB, free: 14.31 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0075/0.9297, allocations: 3.065 MB / 0.6629 GB, free: 11.24 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009424/0.9392, allocations: 3.905 MB / 0.6667 GB, free: 7.32 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003065/0.9423, allocations: 0.5508 MB / 0.6673 GB, free: 6.77 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006447/0.9488, allocations: 1.666 MB / 0.6689 GB, free: 5.102 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01041/0.9593, allocations: 6.075 MB / 0.6748 GB, free: 15.01 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006587/0.9659, allocations: 3.308 MB / 0.678 GB, free: 11.69 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04527/1.011, allocations: 28.21 MB / 0.7056 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/1.011, allocations: 0 / 0.7056 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.437e-06/1.011, allocations: 3.938 kB / 0.7056 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001099/1.012, allocations: 0 / 0.7056 GB, free: 15.41 MB / 0.5105 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.8103/1.823, allocations: 16.06 MB / 0.7213 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.118e-05/1.823, allocations: 9.25 kB / 0.7213 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01549/1.838, allocations: 2.974 MB / 0.7242 GB, free: 167.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4902/2.329, allocations: 16.09 MB / 0.7399 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04632/2.375, allocations: 9.735 MB / 0.7494 GB, free: 157.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002123/2.377, allocations: 1.317 MB / 0.7507 GB, free: 156.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01047/2.388, allocations: 1.738 MB / 0.7524 GB, free: 154.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1495/2.537, allocations: 41.1 MB / 0.7925 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009008/2.538, allocations: 95.14 kB / 0.7926 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007136/2.545, allocations: 0.7595 MB / 0.7934 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009699/2.555, allocations: 4.165 MB / 0.7974 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1082/2.663, allocations: 33.75 MB / 0.8304 GB, free: 73.81 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6389/3.302, allocations: 119.2 MB / 0.9468 GB, free: 121.1 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1092/3.412, allocations: 22.3 MB / 0.9686 GB, free: 118.7 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06361/3.475, allocations: 27.49 MB / 0.9954 GB, free: 110.3 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.284e-05/3.475, allocations: 71.67 kB / 0.9955 GB, free: 110.2 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=372): time 9.078e-06/3.475, allocations: 0 / 0.9955 GB, free: 110.2 MB / 0.5418 GB Notification: Performance of matching and sorting (n=486): time 2.467/5.943, allocations: 327.4 MB / 1.315 GB, free: 103 MB / 0.5887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/5.943, allocations: 286 kB / 1.315 GB, free: 102.7 MB / 0.5887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02349/5.966, allocations: 10.43 MB / 1.326 GB, free: 92.29 MB / 0.5887 GB Notification: Performance of collectPreVariables (initialization): time 0.002775/5.969, allocations: 99.88 kB / 1.326 GB, free: 92.18 MB / 0.5887 GB Notification: Performance of collectInitialEqns (initialization): time 0.007405/5.977, allocations: 10.59 MB / 1.336 GB, free: 81.59 MB / 0.5887 GB Notification: Performance of collectInitialBindings (initialization): time 0.004657/5.981, allocations: 1.89 MB / 1.338 GB, free: 79.72 MB / 0.5887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004293/5.986, allocations: 336.9 kB / 1.338 GB, free: 79.39 MB / 0.5887 GB Notification: Performance of setup shared object (initialization): time 0.001815/5.988, allocations: 1.044 MB / 1.339 GB, free: 78.34 MB / 0.5887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03413/6.022, allocations: 15.98 MB / 1.355 GB, free: 62.35 MB / 0.5887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.555/6.577, allocations: 26.53 MB / 1.381 GB, free: 199.2 MB / 0.5887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04873/6.626, allocations: 19.99 MB / 1.4 GB, free: 192 MB / 0.5887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004399/6.626, allocations: 114 kB / 1.4 GB, free: 192 MB / 0.5887 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.1036/6.73, allocations: 42.04 MB / 1.441 GB, free: 174 MB / 0.5887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003287/6.73, allocations: 166.9 kB / 1.442 GB, free: 174 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006717/6.731, allocations: 376.7 kB / 1.442 GB, free: 174 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003418/6.734, allocations: 1.009 MB / 1.443 GB, free: 173.9 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03837/6.773, allocations: 5.215 MB / 1.448 GB, free: 171.1 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/6.783, allocations: 6.536 MB / 1.454 GB, free: 165 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03017/6.813, allocations: 2.113 MB / 1.456 GB, free: 163.6 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005093/6.819, allocations: 1.023 MB / 1.457 GB, free: 162.6 MB / 0.5887 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.02241/6.841, allocations: 7.843 MB / 1.465 GB, free: 155.7 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004361/6.845, allocations: 0.8722 MB / 1.466 GB, free: 155.3 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.073/6.919, allocations: 30.46 MB / 1.496 GB, free: 126.4 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001876/6.919, allocations: 96.91 kB / 1.496 GB, free: 126.3 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.247e-05/6.919, allocations: 4 kB / 1.496 GB, free: 126.3 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001253/6.919, allocations: 23.91 kB / 1.496 GB, free: 126.3 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1581/7.077, allocations: 72.81 MB / 1.567 GB, free: 50.59 MB / 0.5887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.014e-05/7.077, allocations: 0 / 1.567 GB, free: 50.59 MB / 0.5887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02316/7.1, allocations: 2.056 MB / 1.569 GB, free: 48.54 MB / 0.5887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002316/7.103, allocations: 453.3 kB / 1.569 GB, free: 48.09 MB / 0.5887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002709/7.105, allocations: 85.56 kB / 1.569 GB, free: 48 MB / 0.5887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008227/7.114, allocations: 5.143 MB / 1.574 GB, free: 42.64 MB / 0.5887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.738e-06/7.114, allocations: 0 / 1.574 GB, free: 42.64 MB / 0.5887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5206/7.634, allocations: 51.08 MB / 1.624 GB, free: 185.2 MB / 0.5887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01439/7.649, allocations: 3.972 MB / 1.628 GB, free: 183.7 MB / 0.5887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00555/7.654, allocations: 84.97 kB / 1.628 GB, free: 183.7 MB / 0.5887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02097/7.675, allocations: 1.583 MB / 1.63 GB, free: 183.6 MB / 0.5887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004503/7.68, allocations: 257.3 kB / 1.63 GB, free: 183.6 MB / 0.5887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002315/7.682, allocations: 125.3 kB / 1.63 GB, free: 183.6 MB / 0.5887 GB Notification: Performance of sorting global known variables: time 0.01616/7.699, allocations: 6.499 MB / 1.637 GB, free: 181.3 MB / 0.5887 GB Notification: Performance of sort global known variables: time 6.42e-07/7.699, allocations: 3.844 kB / 1.637 GB, free: 181.3 MB / 0.5887 GB Notification: Performance of remove unused functions: time 0.02543/7.724, allocations: 4.309 MB / 1.641 GB, free: 181 MB / 0.5887 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.1123/7.836, allocations: 52 MB / 1.692 GB, free: 144.3 MB / 0.5887 GB Notification: Performance of simCode: created initialization part: time 0.08749/7.924, allocations: 35.28 MB / 1.726 GB, free: 109.3 MB / 0.5887 GB Notification: Performance of simCode: created event and clocks part: time 1.64e-05/7.924, allocations: 4.531 kB / 1.726 GB, free: 109.3 MB / 0.5887 GB Notification: Performance of simCode: created simulation system equations: time 0.03179/7.956, allocations: 15.06 MB / 1.741 GB, free: 94.22 MB / 0.5887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01153/7.967, allocations: 1.339 MB / 1.742 GB, free: 92.92 MB / 0.5887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.333/9.3, allocations: 435.9 MB / 2.168 GB, free: 176.4 MB / 0.6512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0273/9.328, allocations: 11.32 MB / 2.179 GB, free: 165.1 MB / 0.6512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02918/9.357, allocations: 7.924 MB / 2.187 GB, free: 157.2 MB / 0.6512 GB Notification: Performance of SimCode: time 1.233e-06/9.357, allocations: 0 / 2.187 GB, free: 157.2 MB / 0.6512 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.451/18.81, allocations: 485.7 MB / 2.661 GB, free: 93.58 MB / 0.6512 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1)