Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.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.FreeBodies,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies",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.002196/0.002196, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.046/2.046, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001147/0.001147, allocations: 95.39 kB / 270.9 MB, free: 8.371 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.5187/0.5187, allocations: 43.55 MB / 362.7 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004814/0.0004811, allocations: 12 kB / 431.5 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1344, allocations: 58.84 MB / 490.3 MB, free: 10.92 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5025/0.6369, allocations: 106.6 MB / 0.5829 GB, free: 11.79 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.6372, allocations: 79.97 kB / 0.583 GB, free: 11.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9568/1.594, allocations: 146.2 MB / 0.7258 GB, free: 82.17 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.997e-06/1.594, allocations: 0 / 0.7258 GB, free: 82.17 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0007056/1.595, allocations: 167.8 kB / 0.7259 GB, free: 82.16 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.06674/1.662, allocations: 9.49 MB / 0.7352 GB, free: 78.94 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/1.662, allocations: 14.03 kB / 0.7352 GB, free: 78.93 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007167/1.669, allocations: 1.349 MB / 0.7365 GB, free: 78.83 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06002/1.729, allocations: 7.768 MB / 0.7441 GB, free: 78.29 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04137/1.77, allocations: 11.09 MB / 0.7549 GB, free: 75.48 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008568/1.771, allocations: 0.588 MB / 0.7555 GB, free: 75.24 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004572/1.776, allocations: 0.7908 MB / 0.7563 GB, free: 75 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06203/1.838, allocations: 18.35 MB / 0.7742 GB, free: 65.79 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000686/1.839, allocations: 96.09 kB / 0.7743 GB, free: 65.73 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003835/1.843, allocations: 376.2 kB / 0.7746 GB, free: 65.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004051/1.847, allocations: 1.705 MB / 0.7763 GB, free: 65.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05393/1.901, allocations: 14.92 MB / 0.7909 GB, free: 53.99 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5643/2.465, allocations: 81.23 MB / 0.8702 GB, free: 40.89 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04001/2.505, allocations: 7.589 MB / 0.8776 GB, free: 40.21 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04247/2.548, allocations: 17.08 MB / 0.8943 GB, free: 35.52 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.812e-05/2.548, allocations: 67.36 kB / 0.8944 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=301): time 7.615e-06/2.548, allocations: 0 / 0.8944 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=329): time 0.1418/2.69, allocations: 29.06 MB / 0.9228 GB, free: 29.34 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005326/2.695, allocations: 6.324 MB / 0.9289 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01706/2.712, allocations: 5.89 MB / 0.9347 GB, free: 22.75 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001042/2.713, allocations: 77.08 kB / 0.9348 GB, free: 22.69 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005273/2.718, allocations: 5.144 MB / 0.9398 GB, free: 18.61 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002687/2.721, allocations: 1.313 MB / 0.9411 GB, free: 17.66 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/2.723, allocations: 203.5 kB / 0.9413 GB, free: 17.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009033/2.724, allocations: 0.7347 MB / 0.942 GB, free: 17.01 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01071/2.735, allocations: 4.015 MB / 0.9459 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01487/2.75, allocations: 9.834 MB / 0.9555 GB, free: 6.59 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01459/2.764, allocations: 6.083 MB / 0.9614 GB, free: 4.527 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002258/2.765, allocations: 62.83 kB / 0.9615 GB, free: 4.523 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1316) (initialization): time 0.06038/2.825, allocations: 16.37 MB / 0.9775 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000156/2.825, allocations: 97.09 kB / 0.9776 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03591/2.861, allocations: 7.919 MB / 0.9853 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03118/2.892, allocations: 3.915 MB / 0.9891 GB, free: 11.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01611/2.908, allocations: 2.37 MB / 0.9915 GB, free: 9.852 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02913/2.938, allocations: 13.98 MB / 1.005 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01529/2.953, allocations: 0.8694 MB / 1.006 GB, free: 12.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003033/2.956, allocations: 0.5998 MB / 1.007 GB, free: 11.46 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.0124/2.969, allocations: 3.485 MB / 1.01 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002165/2.971, allocations: 0.5978 MB / 1.011 GB, free: 7.793 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03264/3.003, allocations: 7.825 MB / 1.018 GB, free: 1.594 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03005/3.033, allocations: 7.081 MB / 1.025 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.455e-05/3.034, allocations: 8 kB / 1.025 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001048/3.034, allocations: 19.05 kB / 1.025 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07299/3.107, allocations: 19.48 MB / 1.044 GB, free: 9.535 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.774e-05/3.107, allocations: 8.062 kB / 1.044 GB, free: 9.527 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007092/3.114, allocations: 0.6553 MB / 1.045 GB, free: 8.871 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01904/3.133, allocations: 3.148 MB / 1.048 GB, free: 5.68 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001167/3.134, allocations: 107.9 kB / 1.048 GB, free: 5.574 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02759/3.162, allocations: 14.31 MB / 1.062 GB, free: 6.496 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006325/3.168, allocations: 6.083 MB / 1.068 GB, free: 15.84 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04051/3.209, allocations: 12.8 MB / 1.08 GB, free: 2.742 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002712/3.212, allocations: 0.6571 MB / 1.081 GB, free: 2.062 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002656/3.214, allocations: 85.22 kB / 1.081 GB, free: 1.98 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007766/3.222, allocations: 391.4 kB / 1.081 GB, free: 1.598 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001626/3.224, allocations: 241.5 kB / 1.082 GB, free: 1.359 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004804/3.224, allocations: 104.9 kB / 1.082 GB, free: 1.258 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.4154/3.64, allocations: 4.118 MB / 1.086 GB, free: 168 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7.62e-07/3.64, allocations: 0 / 1.086 GB, free: 168 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01595/3.656, allocations: 2.1 MB / 1.088 GB, free: 168 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.04148/3.697, allocations: 14.29 MB / 1.102 GB, free: 165.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.03414/3.731, allocations: 11.53 MB / 1.113 GB, free: 163.6 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/3.731, allocations: 4.938 kB / 1.113 GB, free: 163.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01962/3.751, allocations: 5.493 MB / 1.118 GB, free: 161.9 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008408/3.76, allocations: 0.8626 MB / 1.119 GB, free: 161.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2451/4.005, allocations: 216.9 MB / 1.331 GB, free: 5.059 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02054/4.025, allocations: 5.544 MB / 1.337 GB, free: 3.309 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01483/4.04, allocations: 3.803 MB / 1.34 GB, free: 236 kB / 0.6198 GB Notification: Performance of SimCode: time 1.683e-06/4.04, allocations: 0 / 1.34 GB, free: 236 kB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.607/12.65, allocations: 0.5582 GB / 1.898 GB, free: 123.3 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FreeBodies.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat does not exist to compare? outputFormat=mat