Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01099/0.011, allocations: 177.6 kB / 15.12 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.871/1.871, allocations: 194.5 MB / 210.3 MB, free: 8.785 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002672/0.002672, allocations: 116.6 kB / 255.6 MB, free: 11.4 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2621/0.2621, allocations: 40 MB / 340.8 MB, free: 11.55 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004815/0.0004816, allocations: 16.27 kB / 406.3 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.09836, allocations: 54.88 MB / 461.1 MB, free: 3.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4941/0.5925, allocations: 98.45 MB / 0.5465 GB, free: 21.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.5929, allocations: 77.23 kB / 0.5465 GB, free: 21.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.313/0.9059, allocations: 78.9 MB / 0.6236 GB, free: 3.445 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.906, allocations: 0 / 0.6236 GB, free: 3.445 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002208/0.9062, allocations: 72 kB / 0.6237 GB, free: 3.375 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01514/0.9214, allocations: 3.77 MB / 0.6273 GB, free: 15.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.9215, allocations: 8.031 kB / 0.6274 GB, free: 15.82 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003064/0.9245, allocations: 0.6913 MB / 0.628 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03299/0.9576, allocations: 4.32 MB / 0.6323 GB, free: 11.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01787/0.9755, allocations: 4.385 MB / 0.6365 GB, free: 7.141 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004457/0.976, allocations: 279.3 kB / 0.6368 GB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002282/0.9783, allocations: 371.8 kB / 0.6372 GB, free: 6.504 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02697/1.005, allocations: 9.109 MB / 0.646 GB, free: 12.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002552/1.006, allocations: 63.41 kB / 0.6461 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001687/1.007, allocations: 183.9 kB / 0.6463 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002213/1.01, allocations: 0.8962 MB / 0.6472 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0227/1.032, allocations: 7.396 MB / 0.6544 GB, free: 3.867 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06914/1.101, allocations: 42.66 MB / 0.696 GB, free: 7.762 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00899/1.111, allocations: 2.527 MB / 0.6985 GB, free: 5.082 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006024/1.111, allocations: 335.8 kB / 0.6988 GB, free: 4.699 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/1.111, allocations: 51 kB / 0.6989 GB, free: 4.641 MB / 474.7 MB Notification: Performance of pre-optimization done (n=119): time 5.28e-06/1.111, allocations: 0 / 0.6989 GB, free: 4.641 MB / 474.7 MB Notification: Performance of matching and sorting (n=133): time 0.03767/1.149, allocations: 8.893 MB / 0.7076 GB, free: 11.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/1.149, allocations: 196.5 kB / 0.7078 GB, free: 11.34 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009291/1.158, allocations: 3.49 MB / 0.7112 GB, free: 7.871 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003228/1.159, allocations: 45.7 kB / 0.7112 GB, free: 7.82 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003476/1.162, allocations: 2.972 MB / 0.7141 GB, free: 4.805 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000974/1.163, allocations: 0.5403 MB / 0.7146 GB, free: 4.258 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006982/1.164, allocations: 116 kB / 0.7147 GB, free: 4.145 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004889/1.165, allocations: 0.5419 MB / 0.7153 GB, free: 3.594 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004973/1.17, allocations: 1.643 MB / 0.7169 GB, free: 1.945 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3341/1.504, allocations: 5.422 MB / 0.7222 GB, free: 118.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007832/1.512, allocations: 2.93 MB / 0.725 GB, free: 118.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002351/1.512, allocations: 38.66 kB / 0.7251 GB, free: 118.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.02036/1.532, allocations: 6.925 MB / 0.7318 GB, free: 118.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001574/1.532, allocations: 64.58 kB / 0.7319 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002777/1.533, allocations: 134.9 kB / 0.732 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/1.534, allocations: 370 kB / 0.7324 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008198/1.542, allocations: 1.322 MB / 0.7337 GB, free: 118.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005285/1.548, allocations: 2.792 MB / 0.7364 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006161/1.554, allocations: 305.6 kB / 0.7367 GB, free: 116.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001261/1.555, allocations: 367.3 kB / 0.737 GB, free: 116.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[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],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (715): * Single equations (assignments): 711 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005775/1.561, allocations: 1.934 MB / 0.7389 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008337/1.562, allocations: 322.6 kB / 0.7392 GB, free: 116.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005148/1.567, allocations: 1.586 MB / 0.7408 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.638e-05/1.567, allocations: 20.14 kB / 0.7408 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/1.567, allocations: 3.812 kB / 0.7408 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.143e-05/1.567, allocations: 4.406 kB / 0.7408 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01666/1.584, allocations: 5.24 MB / 0.7459 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.152e-05/1.584, allocations: 3.594 kB / 0.7459 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/1.586, allocations: 199 kB / 0.7461 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000839/1.587, allocations: 150.7 kB / 0.7463 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002983/1.587, allocations: 26.97 kB / 0.7463 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003381/1.59, allocations: 2.192 MB / 0.7484 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.431e-06/1.59, allocations: 3.875 kB / 0.7484 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007986/1.598, allocations: 3.582 MB / 0.7519 GB, free: 113.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00195/1.6, allocations: 0.5218 MB / 0.7524 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009918/1.602, allocations: 24.75 kB / 0.7525 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002553/1.604, allocations: 63.62 kB / 0.7525 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004546/1.605, allocations: 72.75 kB / 0.7526 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001388/1.605, allocations: 37.91 kB / 0.7526 GB, free: 113.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006694/1.611, allocations: 2.434 MB / 0.755 GB, free: 113.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.612, allocations: 0 / 0.755 GB, free: 113.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007296/1.619, allocations: 0.8453 MB / 0.7558 GB, free: 113.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00903/1.628, allocations: 4.655 MB / 0.7604 GB, free: 111.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01008/1.638, allocations: 3.986 MB / 0.7643 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.638, allocations: 0 / 0.7643 GB, free: 110 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002413/1.641, allocations: 0.976 MB / 0.7652 GB, free: 109.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003141/1.644, allocations: 356.8 kB / 0.7656 GB, free: 109.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09761/1.741, allocations: 122.3 MB / 0.885 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007456/1.749, allocations: 3.022 MB / 0.888 GB, free: 26.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008703/1.758, allocations: 1.815 MB / 0.8897 GB, free: 26.54 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004274/1.762, allocations: 1.636 MB / 0.8913 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of SimCode: time 1.523e-06/1.762, allocations: 0 / 0.8913 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.501/2.263, allocations: 65.64 MB / 0.9554 GB, free: 141.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/2.263, allocations: 195.7 kB / 0.9556 GB, free: 141.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.895/7.159, allocations: 3.938 kB / 0.9556 GB, free: 141.1 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat