Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_3_cpp_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.001443/0.001443, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.084/2.084, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 88.02 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3097/0.3097, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.106e-05/2.116e-05, allocations: 4.219 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4102/0.4103, allocations: 58.86 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2011/0.6114, allocations: 103.6 MB / 0.5672 GB, free: 11.5 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.6118, allocations: 75.95 kB / 0.5673 GB, free: 11.43 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7086/1.32, allocations: 90.33 MB / 0.6555 GB, free: 108.8 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.365e-06/1.321, allocations: 0 / 0.6555 GB, free: 108.8 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0002435/1.321, allocations: 78.94 kB / 0.6556 GB, free: 108.8 MB / 475.1 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.02471/1.345, allocations: 4.32 MB / 0.6598 GB, free: 107 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/1.346, allocations: 9.625 kB / 0.6598 GB, free: 107 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02821/1.374, allocations: 3.575 MB / 0.6633 GB, free: 106.7 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01993/1.394, allocations: 4.723 MB / 0.6679 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003375/1.394, allocations: 143.9 kB / 0.6681 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00301/1.397, allocations: 263.4 kB / 0.6683 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01958/1.417, allocations: 7.939 MB / 0.6761 GB, free: 106.1 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03018/1.447, allocations: 10.37 MB / 0.6862 GB, free: 102.8 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002554/1.447, allocations: 31.38 kB / 0.6862 GB, free: 102.8 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003039/1.45, allocations: 15.06 kB / 0.6862 GB, free: 102.8 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002963/1.453, allocations: 1.25 MB / 0.6874 GB, free: 102.5 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07658/1.53, allocations: 35.47 MB / 0.7221 GB, free: 80.94 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006677/1.537, allocations: 4.095 MB / 0.7261 GB, free: 76.94 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004161/1.541, allocations: 2.172 MB / 0.7282 GB, free: 74.96 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001544/1.543, allocations: 1.319 MB / 0.7295 GB, free: 73.52 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/1.543, allocations: 56.56 kB / 0.7295 GB, free: 73.46 MB / 475.1 MB Notification: Performance of pre-optimization done (n=246): time 8.045e-06/1.543, allocations: 0 / 0.7295 GB, free: 73.46 MB / 475.1 MB Notification: Performance of matching and sorting (n=258): time 0.0414/1.584, allocations: 10.48 MB / 0.7398 GB, free: 64.55 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/1.584, allocations: 73.41 kB / 0.7399 GB, free: 64.46 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004807/1.589, allocations: 2.424 MB / 0.7422 GB, free: 62.33 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005621/1.59, allocations: 25.7 kB / 0.7422 GB, free: 62.3 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002351/1.592, allocations: 3.065 MB / 0.7452 GB, free: 59.5 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001375/1.593, allocations: 0.9232 MB / 0.7461 GB, free: 58.67 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006524/1.594, allocations: 0 / 0.7461 GB, free: 58.67 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0004372/1.595, allocations: 0.5743 MB / 0.7467 GB, free: 58.16 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004963/1.6, allocations: 2.197 MB / 0.7488 GB, free: 56.03 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007383/1.607, allocations: 5.588 MB / 0.7543 GB, free: 48.75 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007656/1.615, allocations: 3.544 MB / 0.7578 GB, free: 45.2 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001229/1.615, allocations: 35.95 kB / 0.7578 GB, free: 45.17 MB / 475.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.02394/1.639, allocations: 7.844 MB / 0.7655 GB, free: 37.31 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001014/1.639, allocations: 56 kB / 0.7655 GB, free: 37.25 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001652/1.639, allocations: 120.8 kB / 0.7656 GB, free: 37.14 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006513/1.646, allocations: 1.036 MB / 0.7666 GB, free: 36.09 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008594/1.654, allocations: 1.403 MB / 0.768 GB, free: 34.69 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003646/1.658, allocations: 2.406 MB / 0.7704 GB, free: 32.17 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006143/1.664, allocations: 215.6 kB / 0.7706 GB, free: 31.96 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001545/1.666, allocations: 360 kB / 0.7709 GB, free: 31.61 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 548 * 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 (760): * Single equations (assignments): 751 * 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.001927/1.668, allocations: 412.8 kB / 0.7713 GB, free: 31.2 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0132/1.681, allocations: 4.182 MB / 0.7754 GB, free: 26.96 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/1.682, allocations: 292.2 kB / 0.7757 GB, free: 26.67 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01489/1.697, allocations: 4.721 MB / 0.7803 GB, free: 21.88 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001178/1.697, allocations: 43.98 kB / 0.7803 GB, free: 21.83 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/1.697, allocations: 4 kB / 0.7803 GB, free: 21.83 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-05/1.697, allocations: 11.95 kB / 0.7803 GB, free: 21.82 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0305/1.728, allocations: 10.3 MB / 0.7904 GB, free: 11.38 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-05/1.728, allocations: 12 kB / 0.7904 GB, free: 11.37 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003725/1.732, allocations: 415.3 kB / 0.7908 GB, free: 10.96 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005249/1.737, allocations: 0.5918 MB / 0.7914 GB, free: 10.36 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005983/1.738, allocations: 23.98 kB / 0.7914 GB, free: 10.34 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003012/1.741, allocations: 2.016 MB / 0.7934 GB, free: 8.215 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.687e-05/1.741, allocations: 19.88 kB / 0.7934 GB, free: 8.199 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0167/1.758, allocations: 7.612 MB / 0.8008 GB, free: 28 kB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/1.759, allocations: 333.4 kB / 0.8011 GB, free: 15.68 MB / 491.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009131/1.76, allocations: 15.98 kB / 0.8012 GB, free: 15.66 MB / 491.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002589/1.762, allocations: 95.83 kB / 0.8012 GB, free: 15.57 MB / 491.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005529/1.763, allocations: 165.6 kB / 0.8014 GB, free: 15.41 MB / 491.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002707/1.763, allocations: 71.98 kB / 0.8015 GB, free: 15.34 MB / 491.1 MB Notification: Performance of sorting global known variables: time 0.004102/1.767, allocations: 1.586 MB / 0.803 GB, free: 13.75 MB / 491.1 MB Notification: Performance of sort global known variables: time 9.92e-07/1.767, allocations: 0 / 0.803 GB, free: 13.75 MB / 491.1 MB Notification: Performance of remove unused functions: time 0.007018/1.774, allocations: 0.8672 MB / 0.8039 GB, free: 12.88 MB / 491.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (209): * Single equations (assignments): 200 * 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.02178/1.796, allocations: 10.65 MB / 0.8143 GB, free: 1.867 MB / 491.1 MB [/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.01646/1.813, allocations: 5.744 MB / 0.8199 GB, free: 12.1 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 2.686e-05/1.813, allocations: 5.562 kB / 0.8199 GB, free: 12.09 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.007536/1.82, allocations: 2.311 MB / 0.8221 GB, free: 9.73 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003126/1.824, allocations: 291.2 kB / 0.8224 GB, free: 9.461 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3788/2.202, allocations: 11.09 MB / 0.8332 GB, free: 125.9 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009677/2.212, allocations: 3.614 MB / 0.8368 GB, free: 125.1 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005932/2.218, allocations: 2.015 MB / 0.8387 GB, free: 125.1 MB / 0.4952 GB Notification: Performance of SimCode: time 1.863e-06/2.218, allocations: 0 / 0.8387 GB, free: 125.1 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.417/6.636, allocations: 139.2 MB / 0.9746 GB, free: 37.25 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat