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.001293/0.001293, allocations: 197.2 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.209/1.209, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008151/0.0008151, allocations: 87.55 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1753/0.1753, allocations: 45.14 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.03e-05/3.032e-05, allocations: 4 kB / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 63.24 MB / 0.5115 GB, free: 6.707 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3919/0.4956, allocations: 111.2 MB / 0.6201 GB, free: 14.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.4958, allocations: 81.92 kB / 0.6201 GB, free: 14.94 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2798/0.7757, allocations: 122.1 MB / 0.7394 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.463e-06/0.7757, allocations: 0 / 0.7394 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000285/0.776, allocations: 116 kB / 0.7395 GB, free: 12.54 MB / 0.5261 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.01748/0.7935, allocations: 5.932 MB / 0.7453 GB, free: 6.531 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.7935, allocations: 15.97 kB / 0.7453 GB, free: 6.516 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002976/0.7965, allocations: 1.001 MB / 0.7463 GB, free: 5.504 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2955/1.092, allocations: 6.971 MB / 0.7531 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0164/1.108, allocations: 6.68 MB / 0.7596 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000418/1.109, allocations: 433 kB / 0.76 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002227/1.111, allocations: 0.5709 MB / 0.7606 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02562/1.137, allocations: 13.57 MB / 0.7738 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002041/1.137, allocations: 84.69 kB / 0.7739 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006784/1.138, allocations: 271.5 kB / 0.7742 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001233/1.139, allocations: 1.283 MB / 0.7754 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0181/1.157, allocations: 11.27 MB / 0.7864 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04732/1.204, allocations: 61.27 MB / 0.8462 GB, free: 68.46 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/1.216, allocations: 5.616 MB / 0.8517 GB, free: 66.38 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002707/1.218, allocations: 3.241 MB / 0.8549 GB, free: 64.98 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004916/1.219, allocations: 0.6845 MB / 0.8556 GB, free: 64.39 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/1.219, allocations: 62.39 kB / 0.8556 GB, free: 64.33 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=245): time 3.868e-06/1.219, allocations: 3.938 kB / 0.8556 GB, free: 64.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=311): time 0.0628/1.282, allocations: 28.72 MB / 0.8837 GB, free: 49.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.55e-05/1.282, allocations: 261.3 kB / 0.8839 GB, free: 49.09 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006635/1.288, allocations: 4.563 MB / 0.8884 GB, free: 45.05 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005122/1.289, allocations: 73.7 kB / 0.8885 GB, free: 44.98 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00179/1.291, allocations: 3.975 MB / 0.8923 GB, free: 41.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009703/1.292, allocations: 1.159 MB / 0.8935 GB, free: 40.39 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003186/1.292, allocations: 148 kB / 0.8936 GB, free: 40.24 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002571/1.292, allocations: 0.6284 MB / 0.8942 GB, free: 39.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003453/1.296, allocations: 3.199 MB / 0.8973 GB, free: 36.82 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004615/1.3, allocations: 7.369 MB / 0.9045 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00474/1.305, allocations: 4.833 MB / 0.9093 GB, free: 23.71 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.635e-05/1.305, allocations: 47.66 kB / 0.9093 GB, free: 23.67 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.01584/1.321, allocations: 12.28 MB / 0.9213 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.864e-05/1.321, allocations: 68 kB / 0.9214 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.842e-05/1.321, allocations: 144 kB / 0.9215 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004205/1.325, allocations: 2.131 MB / 0.9236 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004648/1.33, allocations: 1.718 MB / 0.9253 GB, free: 9.766 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0154/1.346, allocations: 14.35 MB / 0.9393 GB, free: 13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005618/1.351, allocations: 447.9 kB / 0.9397 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001279/1.352, allocations: 446 kB / 0.9401 GB, free: 12.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 663 * 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 (909): * Single equations (assignments): 904 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001765/1.354, allocations: 0.6656 MB / 0.9408 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001147/1.355, allocations: 493.6 kB / 0.9413 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01262/1.368, allocations: 6.897 MB / 0.948 GB, free: 5.402 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.571e-05/1.368, allocations: 35.94 kB / 0.948 GB, free: 5.367 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.153e-05/1.368, allocations: 19.64 kB / 0.948 GB, free: 5.352 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-05/1.368, allocations: 14.06 kB / 0.9481 GB, free: 5.352 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2957/1.664, allocations: 15.75 MB / 0.9634 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.907e-05/1.664, allocations: 6.75 kB / 0.9634 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002336/1.666, allocations: 497.6 kB / 0.9639 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00483/1.671, allocations: 1.874 MB / 0.9657 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003193/1.671, allocations: 62.36 kB / 0.9658 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01612/1.688, allocations: 12.82 MB / 0.9783 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/1.688, allocations: 11.06 kB / 0.9783 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0143/1.702, allocations: 11.89 MB / 0.9899 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/1.703, allocations: 0.5325 MB / 0.9905 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005484/1.704, allocations: 63.62 kB / 0.9905 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002109/1.706, allocations: 209.8 kB / 0.9907 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000483/1.707, allocations: 209.3 kB / 0.9909 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/1.707, allocations: 86.25 kB / 0.991 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00429/1.711, allocations: 3.213 MB / 0.9941 GB, free: 111.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/1.711, allocations: 0 / 0.9941 GB, free: 111.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.005259/1.716, allocations: 1.474 MB / 0.9956 GB, free: 111.3 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 (249): * Single equations (assignments): 244 * 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.01398/1.73, allocations: 13.89 MB / 1.009 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0109/1.741, allocations: 8.041 MB / 1.017 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/1.741, allocations: 0 / 1.017 GB, free: 102.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006218/1.748, allocations: 3.83 MB / 1.021 GB, free: 100.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/1.751, allocations: 0.6345 MB / 1.021 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02308/1.774, allocations: 13.91 MB / 1.035 GB, free: 95.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003738/1.778, allocations: 4.444 MB / 1.039 GB, free: 94.14 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005306/1.783, allocations: 2.452 MB / 1.042 GB, free: 93.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002913/1.786, allocations: 2.724 MB / 1.044 GB, free: 91.73 MB / 0.5417 GB Notification: Performance of SimCode: time 1.483e-06/1.786, allocations: 0 / 1.044 GB, free: 91.73 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4238/2.21, allocations: 117.6 MB / 1.159 GB, free: 99.47 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001177/2.21, allocations: 172.2 kB / 1.159 GB, free: 99.25 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.557/6.767, allocations: 0.8125 kB / 1.159 GB, free: 99.25 MB / 0.5573 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