Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001218/0.001218, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000879/0.000879, allocations: 89.05 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2004/0.2004, allocations: 45.15 MB / 383.8 MB, free: 264 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.077e-05/2.078e-05, allocations: 0 / 453.3 MB, free: 75.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 63.26 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4418/0.5623, allocations: 110.5 MB / 0.6124 GB, free: 8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.5625, allocations: 78.27 kB / 0.6125 GB, free: 7.961 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2305/0.793, allocations: 96.96 MB / 0.7072 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.224e-06/0.793, allocations: 0 / 0.7072 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001609/0.7932, allocations: 88 kB / 0.7072 GB, free: 15.01 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1840 * Number of variables: 1840 Notification: Performance of Generate backend data structure: time 0.01704/0.8103, allocations: 4.702 MB / 0.7118 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.8103, allocations: 8.031 kB / 0.7118 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01568/0.826, allocations: 3.605 MB / 0.7154 GB, free: 6.621 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01181/0.8379, allocations: 4.203 MB / 0.7195 GB, free: 2.367 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002283/0.8381, allocations: 164 kB / 0.7196 GB, free: 2.207 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001913/0.84, allocations: 283.9 kB / 0.7199 GB, free: 1.93 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01469/0.8547, allocations: 8.278 MB / 0.728 GB, free: 9.645 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0246/0.8794, allocations: 10.94 MB / 0.7387 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001446/0.8796, allocations: 35.73 kB / 0.7387 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005922/0.8802, allocations: 16 kB / 0.7387 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001688/0.8819, allocations: 1.299 MB / 0.74 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3844/1.266, allocations: 39 MB / 0.7781 GB, free: 115.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005754/1.272, allocations: 4.239 MB / 0.7822 GB, free: 114.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003132/1.275, allocations: 2.276 MB / 0.7844 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001194/1.277, allocations: 1.642 MB / 0.786 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/1.277, allocations: 55.12 kB / 0.7861 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=260): time 6.222e-06/1.277, allocations: 0 / 0.7861 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=269): time 0.02552/1.302, allocations: 14.2 MB / 0.8 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/1.302, allocations: 101 kB / 0.8 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0043/1.307, allocations: 2.538 MB / 0.8025 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006595/1.307, allocations: 29.2 kB / 0.8026 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002154/1.309, allocations: 3.233 MB / 0.8057 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001272/1.311, allocations: 0.9702 MB / 0.8067 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003171/1.311, allocations: 1.594 kB / 0.8067 GB, free: 107.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003196/1.311, allocations: 0.5854 MB / 0.8072 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002653/1.314, allocations: 2.297 MB / 0.8095 GB, free: 107.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004162/1.318, allocations: 5.813 MB / 0.8152 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004805/1.323, allocations: 3.69 MB / 0.8188 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.953e-05/1.323, allocations: 36 kB / 0.8188 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=846) (initialization): time 0.01392/1.337, allocations: 8.305 MB / 0.8269 GB, free: 98.69 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.975e-05/1.337, allocations: 59.72 kB / 0.827 GB, free: 98.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001332/1.337, allocations: 128.2 kB / 0.8271 GB, free: 98.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003146/1.34, allocations: 1.143 MB / 0.8282 GB, free: 98.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004692/1.345, allocations: 1.447 MB / 0.8296 GB, free: 98.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004753/1.35, allocations: 4.453 MB / 0.834 GB, free: 95.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004732/1.355, allocations: 207.4 kB / 0.8342 GB, free: 95.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001556/1.356, allocations: 377 kB / 0.8345 GB, free: 95.87 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring.e_rel_0[2]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[1]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.e_rel_0[3]:VARIABLE(unit = "1" ) "Unit vector in direction from frame_a to frame_b, resolved in world frame" type: Real [3] spring.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 32 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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 (785): * Single equations (assignments): 777 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.001748/1.358, allocations: 435.7 kB / 0.8349 GB, free: 95.52 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006923/1.365, allocations: 4.14 MB / 0.839 GB, free: 94.17 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005696/1.366, allocations: 298.8 kB / 0.8393 GB, free: 94.01 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007114/1.373, allocations: 4.693 MB / 0.8438 GB, free: 92.42 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.076e-05/1.373, allocations: 47.7 kB / 0.8439 GB, free: 92.42 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/1.373, allocations: 3.969 kB / 0.8439 GB, free: 92.42 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.377e-05/1.373, allocations: 11.91 kB / 0.8439 GB, free: 92.42 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01646/1.389, allocations: 10.66 MB / 0.8543 GB, free: 85.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/1.389, allocations: 11.95 kB / 0.8543 GB, free: 85.75 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001746/1.391, allocations: 436.5 kB / 0.8547 GB, free: 85.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001763/1.393, allocations: 0.6623 MB / 0.8554 GB, free: 84.97 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001959/1.393, allocations: 27.7 kB / 0.8554 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002049/1.395, allocations: 2.328 MB / 0.8577 GB, free: 82.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/1.395, allocations: 19.69 kB / 0.8577 GB, free: 82.77 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008342/1.403, allocations: 8.002 MB / 0.8655 GB, free: 75.09 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/1.405, allocations: 348 kB / 0.8659 GB, free: 74.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003828/1.405, allocations: 20 kB / 0.8659 GB, free: 74.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/1.406, allocations: 110.3 kB / 0.866 GB, free: 74.66 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/1.407, allocations: 164.5 kB / 0.8661 GB, free: 74.55 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001858/1.407, allocations: 79.61 kB / 0.8662 GB, free: 74.47 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002104/1.409, allocations: 1.66 MB / 0.8678 GB, free: 73.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/1.409, allocations: 0 / 0.8678 GB, free: 73.04 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004747/1.414, allocations: 0.9385 MB / 0.8687 GB, free: 72.11 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 209 * 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.008878/1.423, allocations: 11.07 MB / 0.8796 GB, free: 61.55 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00858/1.431, allocations: 5.709 MB / 0.8851 GB, free: 56.41 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.3e-05/1.431, allocations: 4 kB / 0.8851 GB, free: 56.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003827/1.435, allocations: 2.494 MB / 0.8876 GB, free: 54.16 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/1.437, allocations: 335.1 kB / 0.8879 GB, free: 53.89 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01991/1.457, allocations: 11.13 MB / 0.8988 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003372/1.461, allocations: 3.786 MB / 0.9025 GB, free: 41.23 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004854/1.466, allocations: 2.236 MB / 0.9046 GB, free: 39.82 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003113/1.469, allocations: 2.11 MB / 0.9067 GB, free: 37.87 MB / 0.5261 GB Notification: Performance of SimCode: time 9.02e-07/1.469, allocations: 4 kB / 0.9067 GB, free: 37.86 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3965/1.865, allocations: 72.9 MB / 0.9779 GB, free: 128.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/1.865, allocations: 147.6 kB / 0.978 GB, free: 128.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.634/5.499, allocations: 0 / 0.978 GB, free: 128.1 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat