Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002011/0.002011, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.2 MB / 245 MB, free: 5.773 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001083/0.001083, allocations: 103.4 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3791/0.3791, allocations: 45.22 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002567/0.0002567, allocations: 8 kB / 468.5 MB, free: 7.617 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3366, allocations: 63.25 MB / 0.5193 GB, free: 37.23 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/0.4854, allocations: 106.3 MB / 0.6231 GB, free: 13.07 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003346/0.4858, allocations: 83.94 kB / 0.6232 GB, free: 13 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5606/1.046, allocations: 91.49 MB / 0.7125 GB, free: 100.9 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.118e-06/1.046, allocations: 0 / 0.7125 GB, free: 100.9 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002402/1.047, allocations: 75.53 kB / 0.7126 GB, free: 100.9 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: 1672 * Number of variables: 1672 Notification: Performance of Generate backend data structure: time 0.02287/1.07, allocations: 4.47 MB / 0.717 GB, free: 99.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.501e-05/1.07, allocations: 9.969 kB / 0.717 GB, free: 99.01 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005718/1.075, allocations: 0.8485 MB / 0.7178 GB, free: 98.93 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01651/1.092, allocations: 3.553 MB / 0.7213 GB, free: 98.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01263/1.105, allocations: 4.022 MB / 0.7252 GB, free: 97.73 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/1.105, allocations: 329.2 kB / 0.7255 GB, free: 97.61 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003101/1.108, allocations: 430.2 kB / 0.7259 GB, free: 97.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02314/1.131, allocations: 11.21 MB / 0.7369 GB, free: 92.92 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001364/1.132, allocations: 26.84 kB / 0.7369 GB, free: 92.9 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007743/1.132, allocations: 196.8 kB / 0.7371 GB, free: 92.79 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001416/1.134, allocations: 1.221 MB / 0.7383 GB, free: 92.57 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01845/1.152, allocations: 10.81 MB / 0.7488 GB, free: 89.27 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05755/1.21, allocations: 37.19 MB / 0.7852 GB, free: 55.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007941/1.218, allocations: 4.563 MB / 0.7896 GB, free: 50.37 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001024/1.219, allocations: 1.319 MB / 0.7909 GB, free: 48.84 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/1.219, allocations: 56.56 kB / 0.791 GB, free: 48.78 MB / 490.7 MB Notification: Performance of pre-optimization done (n=235): time 6.432e-06/1.219, allocations: 0 / 0.791 GB, free: 48.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=247): time 0.04139/1.26, allocations: 14.07 MB / 0.8047 GB, free: 34.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/1.26, allocations: 77.34 kB / 0.8048 GB, free: 34.46 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004131/1.265, allocations: 2.457 MB / 0.8072 GB, free: 31.99 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005767/1.265, allocations: 66.78 kB / 0.8072 GB, free: 31.92 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001982/1.267, allocations: 2.881 MB / 0.81 GB, free: 29.04 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001361/1.269, allocations: 0.9121 MB / 0.8109 GB, free: 28.13 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006654/1.269, allocations: 112 kB / 0.811 GB, free: 28.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005524/1.27, allocations: 0.5457 MB / 0.8116 GB, free: 27.47 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00364/1.273, allocations: 2.228 MB / 0.8137 GB, free: 25.23 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004705/1.278, allocations: 5.282 MB / 0.8189 GB, free: 18.44 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004503/1.283, allocations: 3.435 MB / 0.8223 GB, free: 15.01 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.116e-05/1.283, allocations: 28 kB / 0.8223 GB, free: 14.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=744) (initialization): time 0.01374/1.297, allocations: 8.209 MB / 0.8303 GB, free: 6.746 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/1.297, allocations: 55.98 kB / 0.8304 GB, free: 6.691 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001874/1.297, allocations: 108 kB / 0.8305 GB, free: 6.586 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003217/1.3, allocations: 1.025 MB / 0.8315 GB, free: 5.551 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004093/1.304, allocations: 1.275 MB / 0.8327 GB, free: 4.273 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002333/1.307, allocations: 2.49 MB / 0.8351 GB, free: 1.645 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003856/1.31, allocations: 307.2 kB / 0.8354 GB, free: 1.348 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001055/1.312, allocations: 332 kB / 0.8357 GB, free: 1.023 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 490 * Number of states: 0 () * Number of discrete variables: 26 (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.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (691): * Single equations (assignments): 682 * 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.004806/1.316, allocations: 2.213 MB / 0.8379 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009788/1.317, allocations: 272.4 kB / 0.8382 GB, free: 14.53 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/1.328, allocations: 4.786 MB / 0.8428 GB, free: 9.711 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.027e-05/1.328, allocations: 40 kB / 0.8429 GB, free: 9.672 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/1.328, allocations: 7.953 kB / 0.8429 GB, free: 9.664 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-05/1.328, allocations: 15.95 kB / 0.8429 GB, free: 9.648 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02785/1.356, allocations: 11.26 MB / 0.8539 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.267e-05/1.356, allocations: 11.95 kB / 0.8539 GB, free: 14.24 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001899/1.358, allocations: 391.4 kB / 0.8543 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002846/1.361, allocations: 0.6196 MB / 0.8549 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003691/1.361, allocations: 51.11 kB / 0.8549 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/1.364, allocations: 2.073 MB / 0.857 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.028e-05/1.364, allocations: 20 kB / 0.857 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/1.376, allocations: 7.561 MB / 0.8644 GB, free: 3.023 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001509/1.378, allocations: 317.5 kB / 0.8647 GB, free: 2.691 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001207/1.379, allocations: 59.42 kB / 0.8647 GB, free: 2.637 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/1.381, allocations: 119.8 kB / 0.8648 GB, free: 2.52 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005002/1.382, allocations: 156.9 kB / 0.865 GB, free: 2.363 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003178/1.382, allocations: 71.98 kB / 0.8651 GB, free: 2.293 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004269/1.387, allocations: 1.677 MB / 0.8667 GB, free: 0.6094 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.914e-06/1.387, allocations: 4.109 kB / 0.8667 GB, free: 0.6055 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006835/1.393, allocations: 0.9789 MB / 0.8676 GB, free: 15.62 MB / 0.5261 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 188 * 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.01497/1.408, allocations: 10.53 MB / 0.8779 GB, free: 4.797 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:77:3-79:159:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotionScalarInit.mo:74:3-76:159: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.3262/1.735, allocations: 5.819 MB / 0.8836 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/1.735, allocations: 0 / 0.8836 GB, free: 136.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005087/1.74, allocations: 2.325 MB / 0.8859 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/1.742, allocations: 395.7 kB / 0.8863 GB, free: 136.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07867/1.821, allocations: 105.3 MB / 0.9891 GB, free: 48.75 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005139/1.826, allocations: 3.527 MB / 0.9925 GB, free: 47.42 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004795/1.831, allocations: 2.026 MB / 0.9945 GB, free: 47.29 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002663/1.834, allocations: 1.911 MB / 0.9964 GB, free: 45.71 MB / 0.5261 GB Notification: Performance of SimCode: time 1.854e-06/1.834, allocations: 0 / 0.9964 GB, free: 45.71 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/1.936, allocations: 68.17 MB / 1.063 GB, free: 9.512 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/1.936, allocations: 202.2 kB / 1.063 GB, free: 9.273 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.906/5.843, allocations: 0 / 1.063 GB, free: 9.273 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat