Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002148/0.002148, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.147/2.147, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001079/0.001079, allocations: 89.53 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3046/0.3046, allocations: 43.5 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 3.024e-05/3.057e-05, allocations: 4 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4082/0.4083, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2382/0.6465, allocations: 108.3 MB / 0.5717 GB, free: 6.902 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.6469, allocations: 83.41 kB / 0.5718 GB, free: 6.824 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8368/1.484, allocations: 116.5 MB / 0.6856 GB, free: 105.7 MB / 475.1 MB Notification: Performance of FrontEnd: time 1.934e-06/1.484, allocations: 4 kB / 0.6856 GB, free: 105.6 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004477/1.484, allocations: 121.1 kB / 0.6857 GB, free: 105.6 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2030 * Number of variables: 2030 Notification: Performance of Generate backend data structure: time 0.02625/1.511, allocations: 5.953 MB / 0.6915 GB, free: 102.8 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/1.511, allocations: 9.562 kB / 0.6915 GB, free: 102.8 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04974/1.56, allocations: 7.003 MB / 0.6984 GB, free: 101.7 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02887/1.589, allocations: 7.801 MB / 0.706 GB, free: 97.68 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004016/1.59, allocations: 189.5 kB / 0.7062 GB, free: 97.68 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003398/1.593, allocations: 352.3 kB / 0.7065 GB, free: 97.66 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02128/1.614, allocations: 8.207 MB / 0.7145 GB, free: 92.68 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03326/1.648, allocations: 12.44 MB / 0.7267 GB, free: 79.07 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000516/1.648, allocations: 83.23 kB / 0.7267 GB, free: 78.99 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00295/1.651, allocations: 36 kB / 0.7268 GB, free: 78.96 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00278/1.654, allocations: 1.322 MB / 0.7281 GB, free: 77.64 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1242/1.778, allocations: 59.5 MB / 0.7862 GB, free: 16.75 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01359/1.792, allocations: 4.881 MB / 0.7909 GB, free: 11.73 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00874/1.801, allocations: 3.227 MB / 0.7941 GB, free: 8.496 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001385/1.802, allocations: 0.6908 MB / 0.7948 GB, free: 7.715 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.763e-05/1.802, allocations: 56.56 kB / 0.7948 GB, free: 7.648 MB / 475.1 MB Notification: Performance of pre-optimization done (n=254): time 1.037e-05/1.802, allocations: 0 / 0.7948 GB, free: 7.648 MB / 475.1 MB Notification: Performance of matching and sorting (n=321): time 0.1843/1.987, allocations: 29.93 MB / 0.824 GB, free: 9.645 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002439/1.987, allocations: 273.4 kB / 0.8243 GB, free: 9.32 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01688/2.004, allocations: 3.944 MB / 0.8282 GB, free: 5.379 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001121/2.005, allocations: 25.7 kB / 0.8282 GB, free: 5.348 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.006879/2.012, allocations: 4.006 MB / 0.8321 GB, free: 1.289 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.003404/2.016, allocations: 1.156 MB / 0.8332 GB, free: 120 kB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00173/2.017, allocations: 0 / 0.8332 GB, free: 120 kB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.3692/2.387, allocations: 0.6411 MB / 0.8338 GB, free: 124.9 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008852/2.396, allocations: 3.152 MB / 0.8369 GB, free: 124.9 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01292/2.409, allocations: 7.521 MB / 0.8443 GB, free: 119.3 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01296/2.422, allocations: 4.817 MB / 0.849 GB, free: 119.2 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003472/2.422, allocations: 47.22 kB / 0.849 GB, free: 119.2 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1035) (initialization): time 0.03723/2.459, allocations: 11.47 MB / 0.8602 GB, free: 118 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001654/2.46, allocations: 68.56 kB / 0.8603 GB, free: 118 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002367/2.46, allocations: 156.7 kB / 0.8604 GB, free: 118 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009035/2.469, allocations: 2.177 MB / 0.8626 GB, free: 117.6 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01172/2.481, allocations: 1.807 MB / 0.8643 GB, free: 117.4 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02971/2.51, allocations: 13.59 MB / 0.8776 GB, free: 110.6 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009741/2.52, allocations: 303.2 kB / 0.8779 GB, free: 110.6 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002293/2.522, allocations: 471.2 kB / 0.8783 GB, free: 110.5 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 703 * Number of states: 0 () * Number of discrete variables: 42 (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.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 (959): * Single equations (assignments): 954 * 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%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003738/2.526, allocations: 0.4977 MB / 0.8788 GB, free: 110.2 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02012/2.546, allocations: 6.834 MB / 0.8855 GB, free: 108 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001979/2.548, allocations: 457.8 kB / 0.8859 GB, free: 108 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02094/2.569, allocations: 6.771 MB / 0.8925 GB, free: 105.5 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.383e-05/2.57, allocations: 33.7 kB / 0.8926 GB, free: 105.5 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.042e-05/2.57, allocations: 10.81 kB / 0.8926 GB, free: 105.5 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.845e-05/2.57, allocations: 17.97 kB / 0.8926 GB, free: 105.5 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04411/2.614, allocations: 14.7 MB / 0.907 GB, free: 99.86 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.293e-05/2.614, allocations: 3.688 kB / 0.907 GB, free: 99.86 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004926/2.619, allocations: 0.5102 MB / 0.9075 GB, free: 99.82 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008324/2.627, allocations: 1.854 MB / 0.9093 GB, free: 99.38 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008275/2.628, allocations: 20.14 kB / 0.9093 GB, free: 99.38 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02536/2.653, allocations: 11.93 MB / 0.9209 GB, free: 89.27 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.368e-05/2.654, allocations: 8 kB / 0.921 GB, free: 89.26 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02668/2.68, allocations: 11.74 MB / 0.9324 GB, free: 78.61 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004114/2.684, allocations: 1 MB / 0.9334 GB, free: 77.68 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001867/2.686, allocations: 13.97 kB / 0.9334 GB, free: 77.67 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005449/2.692, allocations: 162.2 kB / 0.9336 GB, free: 77.58 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001458/2.693, allocations: 216.5 kB / 0.9338 GB, free: 77.44 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007495/2.694, allocations: 88 kB / 0.9339 GB, free: 77.36 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.007717/2.702, allocations: 2.676 MB / 0.9365 GB, free: 75.04 MB / 0.4952 GB Notification: Performance of sort global known variables: time 7.61e-07/2.702, allocations: 4 kB / 0.9365 GB, free: 75.03 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01107/2.713, allocations: 1.285 MB / 0.9377 GB, free: 73.75 MB / 0.4952 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 (260): * Single equations (assignments): 255 * 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.02835/2.741, allocations: 13.75 MB / 0.9512 GB, free: 61.2 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02271/2.764, allocations: 8.475 MB / 0.9594 GB, free: 53.68 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/2.764, allocations: 0 / 0.9594 GB, free: 53.68 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.01208/2.776, allocations: 3.776 MB / 0.9631 GB, free: 50.4 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005115/2.782, allocations: 0.4922 MB / 0.9636 GB, free: 49.99 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04727/2.829, allocations: 14.49 MB / 0.9778 GB, free: 35.88 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0109/2.84, allocations: 4.538 MB / 0.9822 GB, free: 31.32 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007523/2.847, allocations: 2.848 MB / 0.985 GB, free: 28.47 MB / 0.4952 GB Notification: Performance of SimCode: time 1.473e-06/2.847, allocations: 0 / 0.985 GB, free: 28.47 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.556/8.403, allocations: 164.3 MB / 1.145 GB, free: 49.45 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat does not exist to compare? outputFormat=mat