Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.01047/0.01047, allocations: 176.1 kB / 15.12 MB, free: 5.93 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 2.156/2.156, allocations: 194.5 MB / 210.3 MB, free: 7.613 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.001993/0.001992, allocations: 124.6 kB / 255.6 MB, free: 10.23 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.256/0.256, allocations: 40 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004846/0.0004847, allocations: 13.83 kB / 406.3 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1069, allocations: 54.87 MB / 461.1 MB, free: 3.215 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5209/0.6279, allocations: 97.98 MB / 0.546 GB, free: 21.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.6282, allocations: 79.8 kB / 0.5461 GB, free: 21.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3595/0.9877, allocations: 90.93 MB / 0.6349 GB, free: 8.754 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.9878, allocations: 0 / 0.6349 GB, free: 8.754 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000234/0.988, allocations: 80 kB / 0.635 GB, free: 8.676 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.02514/1.013, allocations: 4.437 MB / 0.6393 GB, free: 4.168 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/1.013, allocations: 12.03 kB / 0.6393 GB, free: 4.156 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004505/1.018, allocations: 0.8653 MB / 0.6402 GB, free: 3.281 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02863/1.046, allocations: 3.574 MB / 0.6436 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02162/1.068, allocations: 4.723 MB / 0.6483 GB, free: 10.92 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005811/1.069, allocations: 336.8 kB / 0.6486 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003427/1.072, allocations: 443.7 kB / 0.649 GB, free: 10.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04177/1.114, allocations: 11.5 MB / 0.6602 GB, free: 14.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003573/1.115, allocations: 31.75 kB / 0.6603 GB, free: 14.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002967/1.118, allocations: 199.9 kB / 0.6604 GB, free: 13.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003339/1.121, allocations: 1.251 MB / 0.6617 GB, free: 12.69 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03697/1.158, allocations: 11.09 MB / 0.6725 GB, free: 1.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09268/1.251, allocations: 38.02 MB / 0.7096 GB, free: 10.68 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01532/1.266, allocations: 4.686 MB / 0.7142 GB, free: 5.77 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001945/1.268, allocations: 1.323 MB / 0.7155 GB, free: 4.227 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.859e-05/1.268, allocations: 56.55 kB / 0.7155 GB, free: 4.164 MB / 490.7 MB Notification: Performance of pre-optimization done (n=244): time 6.702e-06/1.268, allocations: 0 / 0.7155 GB, free: 4.164 MB / 490.7 MB Notification: Performance of matching and sorting (n=256): time 0.4062/1.674, allocations: 14.33 MB / 0.7295 GB, free: 118.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.049e-05/1.675, allocations: 76.09 kB / 0.7296 GB, free: 118.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006729/1.681, allocations: 2.504 MB / 0.7321 GB, free: 118.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005796/1.682, allocations: 56.7 kB / 0.7321 GB, free: 118.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003077/1.685, allocations: 2.953 MB / 0.735 GB, free: 116.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001681/1.687, allocations: 0.9442 MB / 0.7359 GB, free: 116 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007793/1.688, allocations: 112.3 kB / 0.736 GB, free: 116 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005116/1.688, allocations: 0.5546 MB / 0.7366 GB, free: 115.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00582/1.694, allocations: 2.277 MB / 0.7388 GB, free: 115.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007989/1.702, allocations: 5.411 MB / 0.7441 GB, free: 111.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007867/1.71, allocations: 3.521 MB / 0.7475 GB, free: 111.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001109/1.71, allocations: 33.41 kB / 0.7475 GB, free: 111.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02512/1.735, allocations: 8.386 MB / 0.7557 GB, free: 111.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.757e-05/1.735, allocations: 52.12 kB / 0.7558 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001398/1.735, allocations: 108.5 kB / 0.7559 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00651/1.742, allocations: 1.034 MB / 0.7569 GB, free: 111 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008231/1.75, allocations: 1.315 MB / 0.7582 GB, free: 110.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004089/1.754, allocations: 2.488 MB / 0.7606 GB, free: 109.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006033/1.76, allocations: 315.9 kB / 0.7609 GB, free: 109.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001398/1.762, allocations: 331.6 kB / 0.7612 GB, free: 109.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (710): * Single equations (assignments): 701 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006598/1.769, allocations: 2.275 MB / 0.7635 GB, free: 109.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008333/1.769, allocations: 281.5 kB / 0.7637 GB, free: 109.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01647/1.786, allocations: 4.897 MB / 0.7685 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001063/1.786, allocations: 42.05 kB / 0.7685 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/1.786, allocations: 0 / 0.7685 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.848e-05/1.786, allocations: 18.56 kB / 0.7686 GB, free: 108.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03548/1.822, allocations: 11.5 MB / 0.7798 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.07e-05/1.822, allocations: 9.875 kB / 0.7798 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003553/1.825, allocations: 408.7 kB / 0.7802 GB, free: 104.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005455/1.831, allocations: 0.6118 MB / 0.7808 GB, free: 104.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005976/1.831, allocations: 57.36 kB / 0.7808 GB, free: 104.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003338/1.835, allocations: 2.097 MB / 0.7829 GB, free: 103.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.285e-05/1.835, allocations: 22.39 kB / 0.7829 GB, free: 103.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0199/1.855, allocations: 7.719 MB / 0.7905 GB, free: 99.53 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/1.856, allocations: 331.8 kB / 0.7908 GB, free: 99.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001248/1.857, allocations: 56.23 kB / 0.7908 GB, free: 99.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002866/1.86, allocations: 119.5 kB / 0.7909 GB, free: 99.22 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007407/1.861, allocations: 163.5 kB / 0.7911 GB, free: 99.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002769/1.861, allocations: 74.16 kB / 0.7912 GB, free: 99.18 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004349/1.866, allocations: 1.708 MB / 0.7928 GB, free: 98.58 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.146e-06/1.866, allocations: 3.375 kB / 0.7928 GB, free: 98.58 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007097/1.873, allocations: 1 MB / 0.7938 GB, free: 98.46 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * 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 (207): * Single equations (assignments): 198 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02273/1.895, allocations: 10.68 MB / 0.8042 GB, free: 90.15 MB / 490.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1955:5-1957:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1952:5-1954:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.0205/1.916, allocations: 5.968 MB / 0.8101 GB, free: 84.94 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-05/1.916, allocations: 0 / 0.8101 GB, free: 84.94 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009547/1.926, allocations: 2.372 MB / 0.8124 GB, free: 82.82 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004559/1.93, allocations: 397.5 kB / 0.8128 GB, free: 82.51 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4617/2.392, allocations: 107.8 MB / 0.918 GB, free: 133.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009606/2.402, allocations: 3.604 MB / 0.9215 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008793/2.41, allocations: 2.068 MB / 0.9235 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004966/2.415, allocations: 1.939 MB / 0.9254 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.673e-06/2.416, allocations: 2.078 kB / 0.9254 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1557/2.571, allocations: 69.62 MB / 0.9934 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002469/2.572, allocations: 217.6 kB / 0.9936 GB, free: 105 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.958/7.53, allocations: 0 / 0.9936 GB, free: 105 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat