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.001907/0.001907, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.717/1.717, allocations: 227.2 MB / 245 MB, free: 7.656 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001228/0.001228, allocations: 101.5 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3764/0.3764, allocations: 45.23 MB / 394.6 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003329, allocations: 8 kB / 468.5 MB, free: 7.656 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4238/0.4242, allocations: 63.25 MB / 0.5193 GB, free: 43.84 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.164/0.5883, allocations: 111.3 MB / 0.628 GB, free: 10.29 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/0.5886, allocations: 87.86 kB / 0.628 GB, free: 10.21 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6363/1.225, allocations: 122 MB / 0.7472 GB, free: 96.61 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.336e-06/1.225, allocations: 0 / 0.7472 GB, free: 96.61 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004727/1.226, allocations: 114.8 kB / 0.7473 GB, free: 96.61 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: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.02958/1.255, allocations: 6.411 MB / 0.7535 GB, free: 94.08 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.05e-05/1.255, allocations: 11.62 kB / 0.7535 GB, free: 94.08 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005149/1.26, allocations: 1 MB / 0.7545 GB, free: 93.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02697/1.287, allocations: 6.968 MB / 0.7613 GB, free: 92.63 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01909/1.306, allocations: 6.716 MB / 0.7679 GB, free: 90.11 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004551/1.307, allocations: 428.3 kB / 0.7683 GB, free: 89.95 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003111/1.31, allocations: 0.5733 MB / 0.7689 GB, free: 89.78 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02917/1.339, allocations: 13.68 MB / 0.7822 GB, free: 82.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002773/1.34, allocations: 91.27 kB / 0.7823 GB, free: 82.65 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008355/1.34, allocations: 269.2 kB / 0.7826 GB, free: 82.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001537/1.342, allocations: 1.29 MB / 0.7838 GB, free: 82.25 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02195/1.364, allocations: 11.43 MB / 0.795 GB, free: 77.49 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07842/1.442, allocations: 61.27 MB / 0.8548 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01373/1.456, allocations: 5.647 MB / 0.8603 GB, free: 9.039 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007538/1.457, allocations: 0.6801 MB / 0.861 GB, free: 8.266 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.86e-05/1.457, allocations: 64.55 kB / 0.8611 GB, free: 8.195 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 6.252e-06/1.457, allocations: 0 / 0.8611 GB, free: 8.195 MB / 0.4948 GB Notification: Performance of matching and sorting (n=311): time 0.105/1.562, allocations: 33.43 MB / 0.8937 GB, free: 6.645 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002121/1.562, allocations: 265.3 kB / 0.894 GB, free: 6.332 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01217/1.575, allocations: 4.6 MB / 0.8984 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001168/1.576, allocations: 73.89 kB / 0.8985 GB, free: 1.668 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.3702/1.946, allocations: 3.964 MB / 0.9024 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002168/1.948, allocations: 1.161 MB / 0.9035 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007439/1.949, allocations: 150.4 kB / 0.9037 GB, free: 116.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005211/1.95, allocations: 0.6277 MB / 0.9043 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005785/1.955, allocations: 3.26 MB / 0.9075 GB, free: 116.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008155/1.964, allocations: 7.437 MB / 0.9147 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007841/1.971, allocations: 4.843 MB / 0.9195 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001528/1.972, allocations: 44.06 kB / 0.9195 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.02583/1.997, allocations: 12.41 MB / 0.9316 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001744/1.998, allocations: 66.16 kB / 0.9317 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003331/1.998, allocations: 149 kB / 0.9318 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00604/2.004, allocations: 2.135 MB / 0.9339 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00727/2.011, allocations: 1.724 MB / 0.9356 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02172/2.033, allocations: 14.82 MB / 0.9501 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008376/2.042, allocations: 449.4 kB / 0.9505 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001786/2.043, allocations: 446 kB / 0.9509 GB, free: 100.2 MB / 0.5261 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 () * Number of clocked 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.007111/2.05, allocations: 2.761 MB / 0.9536 GB, free: 98.86 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/2.052, allocations: 494.1 kB / 0.9541 GB, free: 98.59 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01278/2.065, allocations: 6.962 MB / 0.9609 GB, free: 95.89 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.443e-05/2.065, allocations: 34.69 kB / 0.9609 GB, free: 95.89 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.69e-05/2.065, allocations: 13.12 kB / 0.9609 GB, free: 95.89 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-05/2.065, allocations: 14.72 kB / 0.9609 GB, free: 95.89 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02981/2.095, allocations: 15.81 MB / 0.9764 GB, free: 89.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-05/2.095, allocations: 6.969 kB / 0.9764 GB, free: 89.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002391/2.097, allocations: 0.4915 MB / 0.9769 GB, free: 89.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004483/2.102, allocations: 1.876 MB / 0.9787 GB, free: 89.21 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005002/2.102, allocations: 63.78 kB / 0.9788 GB, free: 89.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01598/2.118, allocations: 13.31 MB / 0.9918 GB, free: 82.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.696e-06/2.118, allocations: 15.12 kB / 0.9918 GB, free: 82.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01875/2.137, allocations: 11.99 MB / 1.003 GB, free: 76.56 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002904/2.14, allocations: 0.5386 MB / 1.004 GB, free: 76.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008695/2.141, allocations: 66.75 kB / 1.004 GB, free: 76.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002349/2.143, allocations: 203.7 kB / 1.004 GB, free: 76.09 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005726/2.144, allocations: 200.4 kB / 1.004 GB, free: 76.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002374/2.144, allocations: 87.12 kB / 1.005 GB, free: 76.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005749/2.15, allocations: 3.262 MB / 1.008 GB, free: 74.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.21e-07/2.15, allocations: 0 / 1.008 GB, free: 74.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008784/2.159, allocations: 1.473 MB / 1.009 GB, free: 72.61 MB / 0.5261 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 () * Number of clocked 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.01529/2.174, allocations: 14 MB / 1.023 GB, free: 59.87 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01189/2.186, allocations: 8.142 MB / 1.031 GB, free: 52.68 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/2.186, allocations: 4 kB / 1.031 GB, free: 52.67 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006588/2.192, allocations: 3.874 MB / 1.035 GB, free: 49.38 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004482/2.197, allocations: 0.6275 MB / 1.035 GB, free: 48.84 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4781/2.675, allocations: 153.8 MB / 1.185 GB, free: 82.68 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007763/2.683, allocations: 4.441 MB / 1.19 GB, free: 81.83 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.008056/2.691, allocations: 2.454 MB / 1.192 GB, free: 81.78 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00521/2.696, allocations: 2.731 MB / 1.195 GB, free: 81.78 MB / 0.5573 GB Notification: Performance of SimCode: time 1.293e-06/2.696, allocations: 0 / 1.195 GB, free: 81.78 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1842/2.88, allocations: 117.5 MB / 1.31 GB, free: 10.31 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/2.881, allocations: 194.8 kB / 1.31 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.899/8.78, allocations: 0 / 1.31 GB, free: 10.07 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