Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.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.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2",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.002476/0.002475, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 87.45 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5526/0.5526, allocations: 43.56 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004626/0.0004627, allocations: 16 kB / 431.5 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1275, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4907/0.6182, allocations: 106.6 MB / 0.5829 GB, free: 11.78 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003092/0.6186, allocations: 75.97 kB / 0.583 GB, free: 11.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.006/1.624, allocations: 146.3 MB / 0.7258 GB, free: 82.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.206e-06/1.624, allocations: 0 / 0.7258 GB, free: 82.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001015/1.625, allocations: 163.2 kB / 0.726 GB, free: 82.39 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2624 * Number of variables: 2624 Notification: Performance of Generate backend data structure: time 0.09175/1.717, allocations: 9.494 MB / 0.7352 GB, free: 79.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/1.717, allocations: 7.844 kB / 0.7352 GB, free: 79.16 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008917/1.726, allocations: 1.354 MB / 0.7366 GB, free: 79.06 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0861/1.812, allocations: 7.772 MB / 0.7442 GB, free: 78.52 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05825/1.871, allocations: 11.09 MB / 0.755 GB, free: 75.59 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001245/1.872, allocations: 0.5839 MB / 0.7556 GB, free: 75.36 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005733/1.878, allocations: 0.7967 MB / 0.7563 GB, free: 75.12 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08869/1.967, allocations: 18.34 MB / 0.7743 GB, free: 65.91 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001035/1.968, allocations: 104.4 kB / 0.7744 GB, free: 65.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005221/1.973, allocations: 371.4 kB / 0.7747 GB, free: 65.63 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005658/1.979, allocations: 1.692 MB / 0.7764 GB, free: 65.31 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07273/2.052, allocations: 14.94 MB / 0.791 GB, free: 53.93 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.754/2.806, allocations: 81.23 MB / 0.8703 GB, free: 40.91 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03873/2.844, allocations: 7.591 MB / 0.8777 GB, free: 40.24 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05678/2.901, allocations: 17.07 MB / 0.8944 GB, free: 35.55 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001063/2.901, allocations: 67.89 kB / 0.8944 GB, free: 35.51 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=301): time 1.131e-05/2.901, allocations: 0 / 0.8944 GB, free: 35.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=329): time 0.19/3.091, allocations: 29.07 MB / 0.9228 GB, free: 29.36 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007198/3.099, allocations: 6.319 MB / 0.929 GB, free: 23.56 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02276/3.122, allocations: 5.894 MB / 0.9347 GB, free: 22.67 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001308/3.123, allocations: 75.98 kB / 0.9348 GB, free: 22.6 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0079/3.131, allocations: 5.143 MB / 0.9398 GB, free: 18.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003625/3.135, allocations: 1.316 MB / 0.9411 GB, free: 17.57 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002943/3.138, allocations: 199.9 kB / 0.9413 GB, free: 17.42 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.002764/3.14, allocations: 0.7396 MB / 0.942 GB, free: 32.93 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01594/3.156, allocations: 4.007 MB / 0.9459 GB, free: 31.61 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02186/3.178, allocations: 9.835 MB / 0.9556 GB, free: 22.51 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02154/3.2, allocations: 6.086 MB / 0.9615 GB, free: 20.45 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002797/3.2, allocations: 63.23 kB / 0.9616 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1316) (initialization): time 0.06096/3.261, allocations: 16.37 MB / 0.9775 GB, free: 15.49 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001713/3.262, allocations: 95.95 kB / 0.9776 GB, free: 15.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03664/3.298, allocations: 7.916 MB / 0.9854 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03057/3.329, allocations: 3.917 MB / 0.9892 GB, free: 11.92 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01715/3.346, allocations: 2.364 MB / 0.9915 GB, free: 9.887 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03083/3.377, allocations: 13.99 MB / 1.005 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01537/3.392, allocations: 0.8769 MB / 1.006 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002886/3.395, allocations: 0.5994 MB / 1.007 GB, free: 11.49 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 936 * Number of states: 0 () * Number of discrete variables: 78 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (1240): * Single equations (assignments): 1215 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01226/3.408, allocations: 3.469 MB / 1.01 GB, free: 8.438 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002204/3.41, allocations: 0.6055 MB / 1.011 GB, free: 7.824 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03261/3.442, allocations: 7.827 MB / 1.018 GB, free: 1.625 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03011/3.473, allocations: 7.066 MB / 1.025 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.098e-05/3.473, allocations: 11.56 kB / 1.025 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001087/3.473, allocations: 14.48 kB / 1.025 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07154/3.544, allocations: 19.49 MB / 1.044 GB, free: 9.516 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.322e-05/3.544, allocations: 4 kB / 1.044 GB, free: 9.512 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00714/3.552, allocations: 0.6597 MB / 1.045 GB, free: 8.852 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01868/3.57, allocations: 3.148 MB / 1.048 GB, free: 5.66 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001165/3.572, allocations: 109.3 kB / 1.048 GB, free: 5.555 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02837/3.6, allocations: 14.31 MB / 1.062 GB, free: 6.477 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006769/3.607, allocations: 6.084 MB / 1.068 GB, free: 15.82 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03988/3.647, allocations: 12.79 MB / 1.08 GB, free: 2.73 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002807/3.65, allocations: 0.6572 MB / 1.081 GB, free: 2.047 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002517/3.652, allocations: 87.97 kB / 1.081 GB, free: 1.961 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007589/3.66, allocations: 387.4 kB / 1.082 GB, free: 1.582 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0016/3.661, allocations: 245.5 kB / 1.082 GB, free: 1.34 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004967/3.662, allocations: 99.94 kB / 1.082 GB, free: 1.242 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.413/4.075, allocations: 4.119 MB / 1.086 GB, free: 168.1 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.343e-06/4.075, allocations: 0 / 1.086 GB, free: 168.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01568/4.091, allocations: 2.097 MB / 1.088 GB, free: 168.1 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * 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 (269): * Single equations (assignments): 252 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04039/4.131, allocations: 14.29 MB / 1.102 GB, free: 165.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.03224/4.163, allocations: 11.54 MB / 1.113 GB, free: 163.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/4.164, allocations: 2.781 kB / 1.113 GB, free: 163.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01859/4.182, allocations: 5.498 MB / 1.119 GB, free: 162.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008861/4.191, allocations: 0.8658 MB / 1.119 GB, free: 162 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2461/4.437, allocations: 216.9 MB / 1.331 GB, free: 5.113 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.017/4.454, allocations: 5.553 MB / 1.337 GB, free: 3.359 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01213/4.466, allocations: 3.804 MB / 1.34 GB, free: 288 kB / 0.6198 GB Notification: Performance of SimCode: time 1.493e-06/4.467, allocations: 0 / 1.34 GB, free: 288 kB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.677/13.14, allocations: 0.5582 GB / 1.898 GB, free: 123.5 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat