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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008752/0.000875, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001009/0.001009, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.3 MB / 245.9 MB, free: 10.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2445/0.2445, allocations: 45.91 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002615/0.0002615, allocations: 8 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1349, allocations: 63.47 MB / 481.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.0297/0.1647, allocations: 28.87 MB / 0.4984 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0184/0.1831, allocations: 7.465 MB / 0.5057 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006455/0.1896, allocations: 139.6 kB / 0.5058 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2905/0.4801, allocations: 1.46 MB / 0.5073 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01598/0.4962, allocations: 4.389 MB / 0.5116 GB, free: 10.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00237/0.4986, allocations: 410.1 kB / 0.5119 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005797/0.5044, allocations: 2.109 MB / 0.514 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007054/0.5115, allocations: 3.306 MB / 0.5172 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002756/0.5143, allocations: 0.9061 MB / 0.5181 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003192/0.5175, allocations: 1.243 MB / 0.5193 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008772/0.5184, allocations: 139 kB / 0.5195 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002692/0.5211, allocations: 0.8319 MB / 0.5203 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002445/0.5235, allocations: 1.499 MB / 0.5217 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001613/0.5252, allocations: 0.8233 MB / 0.5225 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007349/0.5325, allocations: 5.424 MB / 0.5278 GB, free: 7.504 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.5326, allocations: 0 / 0.5278 GB, free: 7.504 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.5326, allocations: 0 / 0.5278 GB, free: 7.504 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003174/0.5329, allocations: 4 kB / 0.5279 GB, free: 7.5 MB / 382.1 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.01245/0.5453, allocations: 4.18 MB / 0.5319 GB, free: 5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.5454, allocations: 9.031 kB / 0.5319 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002604/0.548, allocations: 0.7797 MB / 0.5327 GB, free: 4.766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.5603, allocations: 3.79 MB / 0.5364 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006396/0.5667, allocations: 2.154 MB / 0.5385 GB, free: 2.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002389/0.567, allocations: 217.6 kB / 0.5387 GB, free: 2.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001542/0.5685, allocations: 285.6 kB / 0.539 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02356/0.5921, allocations: 11.65 MB / 0.5504 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001149/0.5923, allocations: 21.97 kB / 0.5504 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005704/0.5928, allocations: 135.5 kB / 0.5505 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004313/0.5972, allocations: 2.646 MB / 0.5531 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0247/0.6219, allocations: 10.85 MB / 0.5637 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06913/0.6911, allocations: 36.28 MB / 0.5991 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009393/0.7005, allocations: 4.566 MB / 0.6036 GB, free: 7.309 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001503/0.7021, allocations: 1.316 MB / 0.6049 GB, free: 5.781 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.847e-05/0.7022, allocations: 52.56 kB / 0.6049 GB, free: 5.723 MB / 446.1 MB Notification: Performance of pre-optimization done (n=235): time 7.605e-06/0.7022, allocations: 0 / 0.6049 GB, free: 5.723 MB / 446.1 MB Notification: Performance of matching and sorting (n=247): time 0.03727/0.7394, allocations: 13.81 MB / 0.6184 GB, free: 7.754 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.665e-05/0.7395, allocations: 83.48 kB / 0.6185 GB, free: 7.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004233/0.7438, allocations: 2.858 MB / 0.6213 GB, free: 4.789 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005027/0.7443, allocations: 60.44 kB / 0.6213 GB, free: 4.727 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001911/0.7462, allocations: 2.889 MB / 0.6242 GB, free: 1.848 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001434/0.7477, allocations: 0.9099 MB / 0.625 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002935/0.748, allocations: 112 kB / 0.6252 GB, free: 0.8359 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000467/0.7485, allocations: 0.5458 MB / 0.6257 GB, free: 288 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00408/0.7525, allocations: 2.218 MB / 0.6279 GB, free: 14.06 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006193/0.7588, allocations: 5.289 MB / 0.633 GB, free: 7.27 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005664/0.7644, allocations: 3.439 MB / 0.6364 GB, free: 3.836 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-05/0.7645, allocations: 32 kB / 0.6364 GB, free: 3.805 MB / 478.1 MB Notification: Performance of matching and sorting (n=745) (initialization): time 0.01647/0.781, allocations: 8.204 MB / 0.6444 GB, free: 11.58 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.019e-05/0.7811, allocations: 52 kB / 0.6445 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/0.7813, allocations: 108.9 kB / 0.6446 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00355/0.7848, allocations: 1.025 MB / 0.6456 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004485/0.7893, allocations: 1.28 MB / 0.6468 GB, free: 9.109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00277/0.7921, allocations: 2.49 MB / 0.6493 GB, free: 6.484 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003902/0.796, allocations: 310.3 kB / 0.6496 GB, free: 6.184 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005864/0.7966, allocations: 320 kB / 0.6499 GB, free: 5.871 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 489 * Number of states: 0 () * Number of discrete variables: 26 (freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (692): * Single equations (assignments): 683 * 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.004737/0.8014, allocations: 2.231 MB / 0.652 GB, free: 3.629 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005072/0.8019, allocations: 276.3 kB / 0.6523 GB, free: 3.355 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008903/0.8108, allocations: 4.784 MB / 0.657 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.462e-05/0.8109, allocations: 51.94 kB / 0.657 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.8109, allocations: 0 / 0.657 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.535e-05/0.811, allocations: 7.969 kB / 0.657 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/0.8346, allocations: 11.21 MB / 0.668 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-05/0.8347, allocations: 8 kB / 0.668 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/0.8364, allocations: 395.3 kB / 0.6684 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003037/0.8395, allocations: 0.6188 MB / 0.669 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002099/0.8397, allocations: 55.98 kB / 0.669 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002684/0.8424, allocations: 2.085 MB / 0.6711 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.408e-05/0.8424, allocations: 11.94 kB / 0.6711 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/0.8538, allocations: 7.557 MB / 0.6784 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009304/0.8548, allocations: 337.4 kB / 0.6788 GB, free: 7.555 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003618/0.8552, allocations: 47.95 kB / 0.6788 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.8564, allocations: 130.5 kB / 0.6789 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.8567, allocations: 149 kB / 0.6791 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/0.8568, allocations: 71.98 kB / 0.6791 GB, free: 7.164 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002917/0.8598, allocations: 1.755 MB / 0.6809 GB, free: 5.402 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.114e-06/0.8598, allocations: 0 / 0.6809 GB, free: 5.402 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005673/0.8655, allocations: 0.9866 MB / 0.6818 GB, free: 4.418 MB / 0.5137 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.01374/0.8792, allocations: 10.54 MB / 0.6921 GB, free: 9.59 MB / 0.5294 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.01115/0.8904, allocations: 5.82 MB / 0.6978 GB, free: 3.742 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/0.8904, allocations: 4 kB / 0.6978 GB, free: 3.738 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004082/0.8945, allocations: 2.317 MB / 0.7001 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00227/0.8968, allocations: 397.7 kB / 0.7004 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3702/1.267, allocations: 105.4 MB / 0.8034 GB, free: 89.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004309/1.271, allocations: 3.532 MB / 0.8068 GB, free: 88.21 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004682/1.276, allocations: 2.03 MB / 0.8088 GB, free: 88.08 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002734/1.279, allocations: 1.908 MB / 0.8106 GB, free: 88.07 MB / 0.545 GB Notification: Performance of SimCode: time 8.92e-07/1.279, allocations: 0 / 0.8106 GB, free: 88.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09587/1.375, allocations: 68.53 MB / 0.8776 GB, free: 29.11 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/1.375, allocations: 212.9 kB / 0.8778 GB, free: 28.86 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.478/4.853, allocations: 4 kB / 0.8778 GB, free: 28.86 MB / 0.545 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