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.0009869/0.000987, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009821/0.0009823, allocations: 89.25 kB / 292.1 MB, free: 5.996 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1715/0.1715, allocations: 45.15 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.912e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08593/0.08598, allocations: 63.25 MB / 0.5115 GB, free: 6.703 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3481/0.4341, allocations: 106.3 MB / 0.6152 GB, free: 3.875 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001742/0.4343, allocations: 78.52 kB / 0.6153 GB, free: 3.836 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2056/0.6399, allocations: 91.56 MB / 0.7047 GB, free: 124 kB / 490.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.64, allocations: 0 / 0.7047 GB, free: 124 kB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001206/0.6401, allocations: 80 kB / 0.7048 GB, free: 44 kB / 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.01221/0.6523, allocations: 4.328 MB / 0.709 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.6524, allocations: 11.97 kB / 0.709 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002072/0.6545, allocations: 0.8523 MB / 0.7099 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01418/0.6686, allocations: 3.558 MB / 0.7133 GB, free: 7.203 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.6789, allocations: 4.003 MB / 0.7172 GB, free: 3.145 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/0.6792, allocations: 328.5 kB / 0.7176 GB, free: 2.82 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00138/0.6806, allocations: 431.8 kB / 0.718 GB, free: 2.398 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02116/0.7017, allocations: 11.12 MB / 0.7288 GB, free: 6.801 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.7019, allocations: 27.75 kB / 0.7289 GB, free: 6.773 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006743/0.7026, allocations: 199.9 kB / 0.729 GB, free: 6.578 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001531/0.7041, allocations: 1.212 MB / 0.7302 GB, free: 5.363 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01989/0.724, allocations: 10.67 MB / 0.7406 GB, free: 10.67 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2898/1.014, allocations: 37.17 MB / 0.7769 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008327/1.022, allocations: 4.544 MB / 0.7814 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002908/1.025, allocations: 2.18 MB / 0.7835 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008841/1.026, allocations: 1.32 MB / 0.7848 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/1.026, allocations: 50.66 kB / 0.7848 GB, free: 112 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=235): time 5.069e-06/1.026, allocations: 0 / 0.7848 GB, free: 112 MB / 0.5261 GB Notification: Performance of matching and sorting (n=247): time 0.02947/1.056, allocations: 11.08 MB / 0.7957 GB, free: 111.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/1.056, allocations: 74.8 kB / 0.7957 GB, free: 111.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003684/1.059, allocations: 2.433 MB / 0.7981 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003203/1.06, allocations: 57.23 kB / 0.7982 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001356/1.061, allocations: 2.891 MB / 0.801 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009506/1.062, allocations: 0.9079 MB / 0.8019 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004725/1.062, allocations: 115.5 kB / 0.802 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003922/1.063, allocations: 0.5438 MB / 0.8025 GB, free: 108.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002846/1.066, allocations: 2.18 MB / 0.8046 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004063/1.07, allocations: 5.25 MB / 0.8098 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004288/1.074, allocations: 3.432 MB / 0.8131 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001085/1.074, allocations: 28.56 kB / 0.8132 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=744) (initialization): time 0.01297/1.087, allocations: 8.129 MB / 0.8211 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.386e-05/1.087, allocations: 52 kB / 0.8211 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001293/1.087, allocations: 105.9 kB / 0.8212 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003255/1.091, allocations: 1.025 MB / 0.8222 GB, free: 101.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00383/1.095, allocations: 1.285 MB / 0.8235 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002181/1.097, allocations: 2.458 MB / 0.8259 GB, free: 99.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003742/1.101, allocations: 305.2 kB / 0.8262 GB, free: 99.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001042/1.102, allocations: 324.4 kB / 0.8265 GB, free: 99.58 MB / 0.5261 GB 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 () * 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.001881/1.104, allocations: 0.5152 MB / 0.827 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008479/1.104, allocations: 272.1 kB / 0.8273 GB, free: 99 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008784/1.113, allocations: 4.742 MB / 0.8319 GB, free: 97.49 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.888e-05/1.113, allocations: 50.67 kB / 0.8319 GB, free: 97.48 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.752e-05/1.113, allocations: 0 / 0.8319 GB, free: 97.48 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.282e-05/1.113, allocations: 11.16 kB / 0.8319 GB, free: 97.48 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01757/1.131, allocations: 11.23 MB / 0.8429 GB, free: 93.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.568e-05/1.131, allocations: 6.562 kB / 0.8429 GB, free: 93.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/1.132, allocations: 397.2 kB / 0.8433 GB, free: 93.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002679/1.135, allocations: 0.6135 MB / 0.8439 GB, free: 93.52 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000187/1.135, allocations: 49.69 kB / 0.8439 GB, free: 93.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001753/1.137, allocations: 2.052 MB / 0.846 GB, free: 92.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.137, allocations: 14.78 kB / 0.846 GB, free: 92.02 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008759/1.146, allocations: 7.509 MB / 0.8533 GB, free: 85.71 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006178/1.147, allocations: 324.9 kB / 0.8536 GB, free: 85.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004447/1.147, allocations: 51.47 kB / 0.8537 GB, free: 85.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/1.148, allocations: 128.5 kB / 0.8538 GB, free: 85.25 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002957/1.149, allocations: 142.5 kB / 0.8539 GB, free: 85.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/1.149, allocations: 72.06 kB / 0.854 GB, free: 85.09 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002509/1.151, allocations: 1.65 MB / 0.8556 GB, free: 83.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.7e-07/1.151, allocations: 0 / 0.8556 GB, free: 83.63 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004303/1.156, allocations: 0.9838 MB / 0.8566 GB, free: 82.66 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 () * 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.009914/1.166, allocations: 10.48 MB / 0.8668 GB, free: 72.7 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 was selected as a continuous variable. [/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.008131/1.174, allocations: 5.763 MB / 0.8724 GB, free: 67.47 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.447e-06/1.174, allocations: 0 / 0.8724 GB, free: 67.47 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00344/1.177, allocations: 2.306 MB / 0.8747 GB, free: 65.37 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/1.179, allocations: 408.8 kB / 0.8751 GB, free: 65.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01702/1.196, allocations: 10.46 MB / 0.8853 GB, free: 55.81 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002892/1.199, allocations: 3.536 MB / 0.8887 GB, free: 53.09 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004304/1.203, allocations: 2.02 MB / 0.8907 GB, free: 51.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002587/1.206, allocations: 1.916 MB / 0.8926 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of SimCode: time 1.273e-06/1.206, allocations: 0 / 0.8926 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3175/1.524, allocations: 69 MB / 0.96 GB, free: 120.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001375/1.524, allocations: 185 kB / 0.9601 GB, free: 120 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.269/4.793, allocations: 0 / 0.9601 GB, free: 120 MB / 0.5417 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