Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Parts_FreeBodies2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies2,fileNamePrefix="ModelicaTest_3_2_3_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.001414/0.001414, allocations: 183.7 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.2 MB / 218.9 MB, free: 9.137 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.0009217/0.0009214, allocations: 90.64 kB / 267.1 MB, free: 9.266 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.4044/0.4044, allocations: 43.47 MB / 358.6 MB, free: 51.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.633e-05/3.659e-05, allocations: 0 / 425.4 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1305, allocations: 58.85 MB / 484.3 MB, free: 13.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4712/0.6017, allocations: 106.5 MB / 0.5769 GB, free: 15.35 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.6021, allocations: 78.33 kB / 0.577 GB, free: 15.31 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7064/1.308, allocations: 146.4 MB / 0.7199 GB, free: 77.12 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.464e-06/1.309, allocations: 0 / 0.7199 GB, free: 77.12 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0007845/1.309, allocations: 159.9 kB / 0.7201 GB, free: 77.11 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: 2624 * Number of variables: 2624 Notification: Performance of Generate backend data structure: time 0.04528/1.355, allocations: 8.873 MB / 0.7287 GB, free: 74.25 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/1.355, allocations: 11.62 kB / 0.7288 GB, free: 74.25 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008199/1.363, allocations: 1.346 MB / 0.7301 GB, free: 74.15 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0353/1.398, allocations: 7.786 MB / 0.7377 GB, free: 73.62 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03023/1.429, allocations: 11.05 MB / 0.7485 GB, free: 72.63 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001054/1.43, allocations: 0.5855 MB / 0.749 GB, free: 72.61 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004948/1.435, allocations: 0.7991 MB / 0.7498 GB, free: 72.6 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04577/1.48, allocations: 18.17 MB / 0.7676 GB, free: 68.25 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006175/1.481, allocations: 104.6 kB / 0.7677 GB, free: 68.24 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003256/1.484, allocations: 376.4 kB / 0.768 GB, free: 68.24 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002587/1.487, allocations: 1.684 MB / 0.7697 GB, free: 68.22 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03287/1.52, allocations: 14.65 MB / 0.784 GB, free: 64.92 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09143/1.611, allocations: 81.23 MB / 0.8633 GB, free: 20.31 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0204/1.632, allocations: 7.551 MB / 0.8707 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004531/1.636, allocations: 3.365 MB / 0.874 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3501/1.986, allocations: 17.11 MB / 0.8907 GB, free: 89.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.39e-05/1.987, allocations: 67.94 kB / 0.8907 GB, free: 89.15 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=301): time 7.965e-06/1.987, allocations: 5.969 kB / 0.8907 GB, free: 89.15 MB / 0.5105 GB Notification: Performance of matching and sorting (n=329): time 0.07102/2.058, allocations: 24.17 MB / 0.9143 GB, free: 84.95 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00355/2.061, allocations: 6.266 MB / 0.9205 GB, free: 79.15 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01192/2.073, allocations: 5.801 MB / 0.9261 GB, free: 78.62 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009796/2.074, allocations: 75.25 kB / 0.9262 GB, free: 78.59 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004144/2.078, allocations: 5.367 MB / 0.9314 GB, free: 76.05 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002682/2.081, allocations: 1.324 MB / 0.9327 GB, free: 75.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001024/2.082, allocations: 197.1 kB / 0.9329 GB, free: 75.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006224/2.083, allocations: 0.7302 MB / 0.9336 GB, free: 74.97 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007692/2.09, allocations: 3.903 MB / 0.9374 GB, free: 74.95 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01259/2.103, allocations: 9.726 MB / 0.9469 GB, free: 67.48 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/2.114, allocations: 6.03 MB / 0.9528 GB, free: 67.41 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003987/2.115, allocations: 60.72 kB / 0.9529 GB, free: 67.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1316) (initialization): time 0.04629/2.161, allocations: 16.4 MB / 0.9689 GB, free: 63.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002165/2.161, allocations: 91.25 kB / 0.969 GB, free: 63.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01988/2.181, allocations: 7.853 MB / 0.9766 GB, free: 61.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.016/2.197, allocations: 3.91 MB / 0.9805 GB, free: 60.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009128/2.207, allocations: 2.364 MB / 0.9828 GB, free: 60.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01488/2.222, allocations: 13.56 MB / 0.996 GB, free: 50.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01469/2.236, allocations: 0.8749 MB / 0.9969 GB, free: 50.51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003153/2.24, allocations: 0.5999 MB / 0.9975 GB, free: 50.43 MB / 0.5105 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 () * 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.00308/2.243, allocations: 0.8797 MB / 0.9983 GB, free: 49.73 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001621/2.244, allocations: 0.6039 MB / 0.9989 GB, free: 49.39 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01541/2.26, allocations: 7.768 MB / 1.006 GB, free: 46.84 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01311/2.273, allocations: 6.908 MB / 1.013 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.508e-05/2.273, allocations: 7.5 kB / 1.013 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.432e-05/2.273, allocations: 18.25 kB / 1.013 GB, free: 44.71 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03876/2.312, allocations: 19.42 MB / 1.032 GB, free: 30.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.528e-05/2.312, allocations: 4 kB / 1.032 GB, free: 30.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003397/2.315, allocations: 0.6594 MB / 1.033 GB, free: 30.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008976/2.324, allocations: 3.144 MB / 1.036 GB, free: 28.18 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007665/2.325, allocations: 100.5 kB / 1.036 GB, free: 28.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01226/2.337, allocations: 14 MB / 1.05 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003295/2.341, allocations: 6.045 MB / 1.056 GB, free: 8.605 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03286/2.374, allocations: 13.6 MB / 1.069 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002778/2.376, allocations: 0.6652 MB / 1.07 GB, free: 15.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002392/2.379, allocations: 83.17 kB / 1.07 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004744/2.384, allocations: 397.2 kB / 1.07 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00111/2.385, allocations: 245.7 kB / 1.07 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003504/2.385, allocations: 102 kB / 1.07 GB, free: 14.63 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01023/2.395, allocations: 4.033 MB / 1.074 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.61e-07/2.395, allocations: 0 / 1.074 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0147/2.41, allocations: 2.095 MB / 1.076 GB, free: 8.535 MB / 0.5261 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 () * 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.3846/2.795, allocations: 14.18 MB / 1.09 GB, free: 90.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02109/2.816, allocations: 11.36 MB / 1.101 GB, free: 89.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/2.816, allocations: 0 / 1.101 GB, free: 89.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.01027/2.826, allocations: 5.43 MB / 1.107 GB, free: 87.55 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006701/2.833, allocations: 0.8597 MB / 1.107 GB, free: 87.53 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05374/2.887, allocations: 19.62 MB / 1.127 GB, free: 82.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01224/2.899, allocations: 5.549 MB / 1.132 GB, free: 81.98 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01147/2.911, allocations: 3.04 MB / 1.135 GB, free: 81.73 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008364/2.919, allocations: 3.727 MB / 1.139 GB, free: 81.73 MB / 0.5261 GB Notification: Performance of SimCode: time 2.485e-06/2.919, allocations: 2.344 kB / 1.139 GB, free: 81.73 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5757/3.495, allocations: 151 MB / 1.286 GB, free: 69.98 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/3.495, allocations: 179.5 kB / 1.286 GB, free: 69.75 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.868/11.36, allocations: 7.844 kB / 1.286 GB, free: 69.75 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.FreeBodies2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_FreeBodies2_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Parts_FreeBodies2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.FreeBodies2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.FreeBodies2_res.mat does not exist to compare? outputFormat=mat