Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.001299/0.001299, allocations: 182.8 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.75/1.75, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0009244/0.0009242, allocations: 85.02 kB / 267.1 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.462/0.462, allocations: 43.46 MB / 358.6 MB, free: 51.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.454e-05/4.472e-05, allocations: 4 kB / 425.4 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1534, allocations: 58.84 MB / 484.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.526/0.6795, allocations: 104.3 MB / 0.5748 GB, free: 1.504 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003815/0.68, allocations: 77.56 kB / 0.5748 GB, free: 1.469 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2379/0.9179, allocations: 91.95 MB / 0.6646 GB, free: 14.2 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.9179, allocations: 4 kB / 0.6646 GB, free: 14.2 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001945/0.9181, allocations: 83.98 kB / 0.6647 GB, free: 14.12 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1720 * Number of variables: 1720 Notification: Performance of Generate backend data structure: time 0.01911/0.9372, allocations: 4.315 MB / 0.6689 GB, free: 9.738 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.9373, allocations: 8.031 kB / 0.6689 GB, free: 9.73 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005026/0.9423, allocations: 0.8654 MB / 0.6698 GB, free: 8.855 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01677/0.9592, allocations: 3.578 MB / 0.6733 GB, free: 5.266 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01532/0.9745, allocations: 4.725 MB / 0.6779 GB, free: 496 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004092/0.975, allocations: 336.8 kB / 0.6782 GB, free: 156 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00341/0.9784, allocations: 441.2 kB / 0.6786 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03274/1.011, allocations: 11.42 MB / 0.6898 GB, free: 3.816 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002476/1.011, allocations: 27.72 kB / 0.6898 GB, free: 3.789 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002919/1.014, allocations: 203.9 kB / 0.69 GB, free: 3.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002672/1.017, allocations: 1.251 MB / 0.6912 GB, free: 2.336 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3966/1.414, allocations: 10.94 MB / 0.7019 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06685/1.481, allocations: 38.14 MB / 0.7392 GB, free: 85.93 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009801/1.49, allocations: 4.651 MB / 0.7437 GB, free: 84.15 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00376/1.494, allocations: 2.217 MB / 0.7459 GB, free: 83.31 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001365/1.496, allocations: 1.321 MB / 0.7472 GB, free: 82.13 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.307e-05/1.496, allocations: 56.47 kB / 0.7472 GB, free: 82.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=244): time 7.083e-06/1.496, allocations: 0 / 0.7472 GB, free: 82.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=256): time 0.04099/1.537, allocations: 11.28 MB / 0.7582 GB, free: 79.49 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.319e-05/1.537, allocations: 77.56 kB / 0.7583 GB, free: 79.43 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007983/1.545, allocations: 2.513 MB / 0.7608 GB, free: 78.51 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007225/1.546, allocations: 57.55 kB / 0.7608 GB, free: 78.46 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002509/1.548, allocations: 2.961 MB / 0.7637 GB, free: 76.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001622/1.55, allocations: 0.944 MB / 0.7646 GB, free: 75.57 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008174/1.551, allocations: 113.3 kB / 0.7647 GB, free: 75.49 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006863/1.551, allocations: 0.5513 MB / 0.7653 GB, free: 75.08 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004223/1.556, allocations: 2.234 MB / 0.7675 GB, free: 74.36 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006354/1.562, allocations: 5.383 MB / 0.7727 GB, free: 69.46 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006284/1.568, allocations: 3.515 MB / 0.7761 GB, free: 68.42 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001756/1.569, allocations: 36.36 kB / 0.7762 GB, free: 68.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=766) (initialization): time 0.01896/1.587, allocations: 8.32 MB / 0.7843 GB, free: 65.68 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002146/1.588, allocations: 52.03 kB / 0.7843 GB, free: 65.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002451/1.588, allocations: 111.8 kB / 0.7845 GB, free: 65.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003677/1.592, allocations: 1.029 MB / 0.7855 GB, free: 65.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004871/1.597, allocations: 1.32 MB / 0.7868 GB, free: 65.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002802/1.599, allocations: 2.463 MB / 0.7892 GB, free: 63.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00528/1.605, allocations: 320.5 kB / 0.7895 GB, free: 63.78 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/1.606, allocations: 335.7 kB / 0.7898 GB, free: 63.73 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 503 * Number of states: 0 () * Number of discrete variables: 24 (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.groundColor[3],world.groundColor[2],world.groundColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (713): * Single equations (assignments): 704 * 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.002432/1.609, allocations: 0.5186 MB / 0.7903 GB, free: 63.29 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/1.61, allocations: 289.2 kB / 0.7906 GB, free: 63.13 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01134/1.621, allocations: 4.854 MB / 0.7953 GB, free: 61.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.277e-05/1.621, allocations: 49.05 kB / 0.7954 GB, free: 61.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.087e-05/1.621, allocations: 3.938 kB / 0.7954 GB, free: 61.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.84e-05/1.621, allocations: 9.984 kB / 0.7954 GB, free: 61.55 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02575/1.647, allocations: 11.48 MB / 0.8066 GB, free: 57.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.123e-05/1.647, allocations: 11.62 kB / 0.8066 GB, free: 57.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001866/1.649, allocations: 412.7 kB / 0.807 GB, free: 57.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00293/1.652, allocations: 0.6128 MB / 0.8076 GB, free: 57.46 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002949/1.652, allocations: 56.09 kB / 0.8076 GB, free: 57.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001983/1.654, allocations: 2.067 MB / 0.8096 GB, free: 55.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.929e-06/1.654, allocations: 19.42 kB / 0.8097 GB, free: 55.95 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/1.666, allocations: 7.668 MB / 0.8172 GB, free: 49.31 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/1.667, allocations: 325.1 kB / 0.8175 GB, free: 48.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008392/1.668, allocations: 54.39 kB / 0.8175 GB, free: 48.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001828/1.67, allocations: 124.8 kB / 0.8176 GB, free: 48.85 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003555/1.67, allocations: 159.8 kB / 0.8178 GB, free: 48.74 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001871/1.671, allocations: 78.19 kB / 0.8179 GB, free: 48.67 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003706/1.674, allocations: 1.7 MB / 0.8195 GB, free: 47.17 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.31e-07/1.674, allocations: 0 / 0.8195 GB, free: 47.17 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005907/1.68, allocations: 0.9995 MB / 0.8205 GB, free: 46.18 MB / 0.4948 GB 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 () * 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.01146/1.692, allocations: 10.62 MB / 0.8309 GB, free: 36.05 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.0103/1.702, allocations: 5.898 MB / 0.8366 GB, free: 30.68 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/1.702, allocations: 9.875 kB / 0.8366 GB, free: 30.68 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004012/1.706, allocations: 2.352 MB / 0.8389 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/1.709, allocations: 395.9 kB / 0.8393 GB, free: 28.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02673/1.736, allocations: 10.77 MB / 0.8498 GB, free: 18.71 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005014/1.741, allocations: 3.616 MB / 0.8534 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004852/1.746, allocations: 2.084 MB / 0.8554 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002907/1.749, allocations: 1.957 MB / 0.8573 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of SimCode: time 1.713e-06/1.749, allocations: 0 / 0.8573 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4545/2.204, allocations: 70.86 MB / 0.9265 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/2.204, allocations: 187.7 kB / 0.9267 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.119/6.323, allocations: 0 / 0.9267 GB, free: 104.1 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat