Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001032/0.001032, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008892/0.0008892, allocations: 94.7 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2055/0.2055, allocations: 45.16 MB / 383.8 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.951e-05/1.952e-05, allocations: 4 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1248, allocations: 63.25 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4352/0.56, allocations: 110.6 MB / 0.6124 GB, free: 7.934 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.5603, allocations: 78.7 kB / 0.6125 GB, free: 7.895 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2893/0.8496, allocations: 119.6 MB / 0.7293 GB, free: 8.469 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.379e-06/0.8497, allocations: 8 kB / 0.7293 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004057/0.8501, allocations: 112 kB / 0.7294 GB, free: 8.352 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02004/0.8701, allocations: 5.933 MB / 0.7352 GB, free: 2.348 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.225e-05/0.8702, allocations: 8.031 kB / 0.7352 GB, free: 2.34 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02928/0.8995, allocations: 6.985 MB / 0.742 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01745/0.9171, allocations: 6.663 MB / 0.7485 GB, free: 4.59 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003211/0.9174, allocations: 184 kB / 0.7487 GB, free: 4.41 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002499/0.9199, allocations: 359.7 kB / 0.749 GB, free: 4.059 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.338/1.258, allocations: 8.001 MB / 0.7569 GB, free: 116.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03325/1.291, allocations: 12.17 MB / 0.7687 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007999/1.292, allocations: 84.31 kB / 0.7688 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002949/1.295, allocations: 36.55 kB / 0.7689 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002857/1.298, allocations: 1.287 MB / 0.7701 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07606/1.374, allocations: 58.75 MB / 0.8275 GB, free: 78.88 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005215/1.379, allocations: 4.785 MB / 0.8322 GB, free: 76.53 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003017/1.382, allocations: 3.174 MB / 0.8353 GB, free: 75.16 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005359/1.383, allocations: 0.6847 MB / 0.8359 GB, free: 74.57 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/1.383, allocations: 69.77 kB / 0.836 GB, free: 74.51 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=245): time 5.401e-06/1.383, allocations: 0 / 0.836 GB, free: 74.51 MB / 0.5261 GB Notification: Performance of matching and sorting (n=315): time 0.05534/1.438, allocations: 29.37 MB / 0.8647 GB, free: 63.67 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.951e-05/1.438, allocations: 263.9 kB / 0.8649 GB, free: 63.38 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007448/1.446, allocations: 3.861 MB / 0.8687 GB, free: 61.99 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007607/1.447, allocations: 28.44 kB / 0.8687 GB, free: 61.96 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002417/1.449, allocations: 4.031 MB / 0.8727 GB, free: 58.96 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001423/1.451, allocations: 1.134 MB / 0.8738 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003729/1.451, allocations: 0 / 0.8738 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003357/1.451, allocations: 0.6318 MB / 0.8744 GB, free: 57.66 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003553/1.455, allocations: 3.141 MB / 0.8775 GB, free: 56.48 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005375/1.46, allocations: 7.414 MB / 0.8847 GB, free: 48.64 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005965/1.466, allocations: 4.78 MB / 0.8894 GB, free: 44.62 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.573e-05/1.466, allocations: 44 kB / 0.8894 GB, free: 44.58 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1013) (initialization): time 0.0182/1.485, allocations: 11.51 MB / 0.9006 GB, free: 34.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.752e-05/1.485, allocations: 68 kB / 0.9007 GB, free: 34.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/1.485, allocations: 152 kB / 0.9009 GB, free: 34.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004607/1.489, allocations: 2.159 MB / 0.903 GB, free: 32.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006134/1.496, allocations: 1.768 MB / 0.9047 GB, free: 31.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01541/1.511, allocations: 13.22 MB / 0.9176 GB, free: 19.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00626/1.517, allocations: 307 kB / 0.9179 GB, free: 19.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001979/1.519, allocations: 454.1 kB / 0.9183 GB, free: 18.91 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 44 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (937): * Single equations (assignments): 932 * Array equations: 3 * 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: 2 {(6,55.6%) 21,(6,55.6%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003083/1.522, allocations: 0.4941 MB / 0.9188 GB, free: 18.41 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01094/1.533, allocations: 6.826 MB / 0.9255 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00143/1.535, allocations: 457.2 kB / 0.9259 GB, free: 12.22 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/1.546, allocations: 6.756 MB / 0.9325 GB, free: 6.723 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-05/1.546, allocations: 32 kB / 0.9325 GB, free: 6.691 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.162e-05/1.546, allocations: 11.94 kB / 0.9326 GB, free: 6.68 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.413e-05/1.546, allocations: 17.55 kB / 0.9326 GB, free: 6.676 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02845/1.575, allocations: 14.66 MB / 0.9469 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.458e-05/1.575, allocations: 4.094 kB / 0.9469 GB, free: 10.67 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002652/1.577, allocations: 0.494 MB / 0.9474 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004894/1.582, allocations: 1.856 MB / 0.9492 GB, free: 8.914 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005973/1.583, allocations: 19.95 kB / 0.9492 GB, free: 8.895 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3462/1.929, allocations: 11.91 MB / 0.9608 GB, free: 118.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/1.929, allocations: 12.69 kB / 0.9609 GB, free: 118.8 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01894/1.948, allocations: 11.73 MB / 0.9723 GB, free: 117 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/1.95, allocations: 484 kB / 0.9728 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00106/1.951, allocations: 14.78 kB / 0.9728 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002568/1.953, allocations: 166.2 kB / 0.9729 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006251/1.954, allocations: 208.8 kB / 0.9731 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002397/1.954, allocations: 87.02 kB / 0.9732 GB, free: 116.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00518/1.959, allocations: 2.61 MB / 0.9758 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.4e-07/1.959, allocations: 0 / 0.9758 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009964/1.969, allocations: 1.277 MB / 0.977 GB, free: 116.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * Array equations: 3 * 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: 2 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01536/1.985, allocations: 13.76 MB / 0.9905 GB, free: 113.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01241/1.997, allocations: 8.16 MB / 0.9984 GB, free: 112.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/1.997, allocations: 3.062 kB / 0.9984 GB, free: 112.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006297/2.004, allocations: 3.783 MB / 1.002 GB, free: 112.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003496/2.007, allocations: 0.5168 MB / 1.003 GB, free: 112.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.027/2.034, allocations: 13.62 MB / 1.016 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004689/2.039, allocations: 4.446 MB / 1.02 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006579/2.045, allocations: 2.485 MB / 1.023 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003894/2.049, allocations: 2.722 MB / 1.025 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.002e-06/2.049, allocations: 4 kB / 1.025 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1568/2.206, allocations: 109.2 MB / 1.132 GB, free: 25.53 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001348/2.206, allocations: 135.3 kB / 1.132 GB, free: 25.33 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.171/7.377, allocations: 3.719 kB / 1.132 GB, free: 25.33 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat