Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_1_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.1+maint.om/package.mo): time 0.01018/0.01018, allocations: 166.4 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.8/1.8, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002075/0.002074, allocations: 103 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.456/0.456, allocations: 38.05 MB / 303.7 MB, free: 42.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004912/0.0004914, allocations: 8 kB / 363 MB, free: 5.484 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1166, allocations: 48.71 MB / 411.7 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4404/0.5571, allocations: 91.63 MB / 0.4915 GB, free: 12.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.5574, allocations: 78.22 kB / 0.4916 GB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3656/0.9231, allocations: 78.84 MB / 0.5686 GB, free: 2.094 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.9232, allocations: 4 kB / 0.5686 GB, free: 2.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002371/0.9234, allocations: 71.98 kB / 0.5687 GB, free: 2.02 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01608/0.9395, allocations: 3.76 MB / 0.5723 GB, free: 14.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.835e-05/0.9396, allocations: 16.02 kB / 0.5723 GB, free: 14.18 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003404/0.943, allocations: 0.6922 MB / 0.573 GB, free: 13.48 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0335/0.9765, allocations: 4.323 MB / 0.5772 GB, free: 9.145 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01827/0.9949, allocations: 4.376 MB / 0.5815 GB, free: 4.703 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004278/0.9953, allocations: 279.3 kB / 0.5818 GB, free: 4.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002259/0.9976, allocations: 371.8 kB / 0.5821 GB, free: 4.066 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.318/1.316, allocations: 9.107 MB / 0.591 GB, free: 80 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003493/1.316, allocations: 58.75 kB / 0.5911 GB, free: 80 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001958/1.318, allocations: 182.9 kB / 0.5913 GB, free: 80 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00225/1.32, allocations: 0.8947 MB / 0.5921 GB, free: 79.99 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02102/1.341, allocations: 7.394 MB / 0.5994 GB, free: 79.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05803/1.399, allocations: 42.65 MB / 0.641 GB, free: 52.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008528/1.408, allocations: 2.529 MB / 0.6435 GB, free: 51.53 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000596/1.409, allocations: 328.8 kB / 0.6438 GB, free: 51.24 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.546e-05/1.409, allocations: 46.78 kB / 0.6438 GB, free: 51.19 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.741e-06/1.409, allocations: 8.297 kB / 0.6438 GB, free: 51.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.03833/1.447, allocations: 8.898 MB / 0.6525 GB, free: 47.13 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.508e-05/1.447, allocations: 192.5 kB / 0.6527 GB, free: 46.91 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01024/1.458, allocations: 3.497 MB / 0.6561 GB, free: 45.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003374/1.458, allocations: 42.33 kB / 0.6562 GB, free: 45.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003181/1.461, allocations: 2.966 MB / 0.6591 GB, free: 43.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/1.462, allocations: 0.5433 MB / 0.6596 GB, free: 43.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007744/1.463, allocations: 116.2 kB / 0.6597 GB, free: 43.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004859/1.463, allocations: 0.5428 MB / 0.6602 GB, free: 42.65 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004982/1.468, allocations: 1.641 MB / 0.6618 GB, free: 42.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007178/1.476, allocations: 5.428 MB / 0.6671 GB, free: 36.42 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006959/1.483, allocations: 2.937 MB / 0.67 GB, free: 35.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001586/1.483, allocations: 40.34 kB / 0.67 GB, free: 35.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01912/1.502, allocations: 6.923 MB / 0.6768 GB, free: 32.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/1.502, allocations: 62.78 kB / 0.6769 GB, free: 32.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002211/1.502, allocations: 134.1 kB / 0.677 GB, free: 32.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/1.504, allocations: 372.4 kB / 0.6774 GB, free: 32.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007785/1.512, allocations: 1.326 MB / 0.6786 GB, free: 32.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004524/1.516, allocations: 2.786 MB / 0.6814 GB, free: 30.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006426/1.523, allocations: 303.7 kB / 0.6817 GB, free: 30.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001365/1.524, allocations: 368.7 kB / 0.682 GB, free: 30.27 MB / 426.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.005439/1.53, allocations: 1.931 MB / 0.6839 GB, free: 29.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001027/1.531, allocations: 324.1 kB / 0.6842 GB, free: 29.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005092/1.536, allocations: 1.59 MB / 0.6858 GB, free: 28.51 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.936e-05/1.536, allocations: 20.8 kB / 0.6858 GB, free: 28.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/1.536, allocations: 3.562 kB / 0.6858 GB, free: 28.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.739e-05/1.536, allocations: 3.703 kB / 0.6858 GB, free: 28.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0178/1.554, allocations: 5.235 MB / 0.6909 GB, free: 26.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.159e-05/1.554, allocations: 3.438 kB / 0.6909 GB, free: 26.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001879/1.556, allocations: 188.5 kB / 0.6911 GB, free: 26.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008914/1.557, allocations: 159.9 kB / 0.6912 GB, free: 26.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000296/1.557, allocations: 26.8 kB / 0.6913 GB, free: 26.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003425/1.56, allocations: 2.201 MB / 0.6934 GB, free: 24.74 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/1.56, allocations: 4.344 kB / 0.6934 GB, free: 24.74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008238/1.569, allocations: 3.573 MB / 0.6969 GB, free: 22.94 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00198/1.571, allocations: 0.5249 MB / 0.6974 GB, free: 22.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009788/1.572, allocations: 23.31 kB / 0.6974 GB, free: 22.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002329/1.574, allocations: 53.27 kB / 0.6975 GB, free: 22.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003375/1.575, allocations: 76.62 kB / 0.6976 GB, free: 22.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/1.575, allocations: 41.53 kB / 0.6976 GB, free: 22.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008034/1.583, allocations: 2.431 MB / 0.7 GB, free: 21.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.583, allocations: 0 / 0.7 GB, free: 21.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01027/1.593, allocations: 0.8492 MB / 0.7008 GB, free: 21.62 MB / 426.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.01158/1.605, allocations: 4.649 MB / 0.7053 GB, free: 18.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01269/1.617, allocations: 3.978 MB / 0.7092 GB, free: 17.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.287e-05/1.618, allocations: 4.25 kB / 0.7092 GB, free: 17.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003/1.621, allocations: 0.9731 MB / 0.7102 GB, free: 17.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003962/1.625, allocations: 364.7 kB / 0.7105 GB, free: 16.85 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4178/2.042, allocations: 122.3 MB / 0.83 GB, free: 27.33 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006383/2.049, allocations: 3.018 MB / 0.8329 GB, free: 42.56 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007825/2.057, allocations: 1.807 MB / 0.8347 GB, free: 42.52 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003727/2.06, allocations: 1.637 MB / 0.8363 GB, free: 42.51 MB / 474.7 MB Notification: Performance of SimCode: time 1.643e-06/2.06, allocations: 0 / 0.8363 GB, free: 42.51 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1589/2.219, allocations: 65.63 MB / 0.9004 GB, free: 28.04 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/2.22, allocations: 197 kB / 0.9005 GB, free: 27.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.092/7.312, allocations: 0 / 0.9005 GB, free: 27.8 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.Distance2_res.mat does not exist to compare? outputFormat=mat