Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.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.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2",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.001564/0.001564, allocations: 182.2 kB / 13.66 MB, free: 1.664 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.016/2.016, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001133/0.001133, allocations: 94.58 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2976/0.2976, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.885e-05/4.896e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1524, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5295/0.682, allocations: 102.9 MB / 0.5734 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.6824, allocations: 78.3 kB / 0.5735 GB, free: 0.832 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4377/1.12, allocations: 98.69 MB / 0.6698 GB, free: 5.961 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.315e-06/1.12, allocations: 0 / 0.6698 GB, free: 5.961 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003701/1.121, allocations: 99.98 kB / 0.6699 GB, free: 5.863 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.04587/1.166, allocations: 5.93 MB / 0.6757 GB, free: 15.86 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/1.167, allocations: 12.03 kB / 0.6757 GB, free: 15.85 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00466/1.171, allocations: 0.8929 MB / 0.6766 GB, free: 14.95 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02703/1.198, allocations: 2.938 MB / 0.6795 GB, free: 12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03043/1.229, allocations: 7.251 MB / 0.6866 GB, free: 4.684 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006371/1.229, allocations: 369.6 kB / 0.6869 GB, free: 4.32 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002981/1.232, allocations: 0.4918 MB / 0.6874 GB, free: 3.828 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04311/1.276, allocations: 12.45 MB / 0.6996 GB, free: 6.148 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003607/1.276, allocations: 75.3 kB / 0.6996 GB, free: 6.074 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002033/1.278, allocations: 239.9 kB / 0.6999 GB, free: 5.84 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003593/1.282, allocations: 1.241 MB / 0.7011 GB, free: 4.594 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3951/1.677, allocations: 10.46 MB / 0.7113 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09901/1.776, allocations: 58.04 MB / 0.768 GB, free: 77.82 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02545/1.801, allocations: 5.335 MB / 0.7732 GB, free: 76.89 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005978/1.808, allocations: 2.448 MB / 0.7756 GB, free: 75.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03027/1.838, allocations: 12.33 MB / 0.7876 GB, free: 69.19 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.762e-05/1.838, allocations: 55.69 kB / 0.7877 GB, free: 69.13 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=219): time 6.462e-06/1.838, allocations: 0 / 0.7877 GB, free: 69.13 MB / 0.4948 GB Notification: Performance of matching and sorting (n=258): time 0.09445/1.932, allocations: 21.28 MB / 0.8084 GB, free: 62.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003631/1.936, allocations: 4.627 MB / 0.813 GB, free: 57.74 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01008/1.946, allocations: 4.004 MB / 0.8169 GB, free: 56.32 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008598/1.947, allocations: 66.36 kB / 0.8169 GB, free: 56.27 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00303/1.95, allocations: 3.432 MB / 0.8203 GB, free: 53.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001805/1.952, allocations: 1.019 MB / 0.8213 GB, free: 52.8 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00116/1.953, allocations: 145.8 kB / 0.8214 GB, free: 52.69 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005946/1.954, allocations: 0.6291 MB / 0.822 GB, free: 52.24 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008227/1.962, allocations: 3.089 MB / 0.825 GB, free: 51.24 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01091/1.973, allocations: 7.338 MB / 0.8322 GB, free: 43.17 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/1.984, allocations: 4.683 MB / 0.8368 GB, free: 39.26 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000158/1.984, allocations: 40 kB / 0.8368 GB, free: 39.22 MB / 0.4948 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.04334/2.028, allocations: 12.84 MB / 0.8494 GB, free: 28.62 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000116/2.028, allocations: 69.69 kB / 0.8494 GB, free: 28.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02495/2.053, allocations: 6.457 MB / 0.8557 GB, free: 23.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01985/2.073, allocations: 3.352 MB / 0.859 GB, free: 21.33 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01085/2.084, allocations: 1.733 MB / 0.8607 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02707/2.111, allocations: 15.82 MB / 0.8761 GB, free: 4.355 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01208/2.123, allocations: 0.7761 MB / 0.8769 GB, free: 3.582 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001987/2.125, allocations: 451.9 kB / 0.8773 GB, free: 3.141 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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 (906): * Single equations (assignments): 886 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002542/2.127, allocations: 0.6539 MB / 0.878 GB, free: 2.484 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001342/2.129, allocations: 418.6 kB / 0.8784 GB, free: 2.07 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0287/2.158, allocations: 7.064 MB / 0.8853 GB, free: 10.96 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02777/2.185, allocations: 6.403 MB / 0.8915 GB, free: 4.523 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-05/2.185, allocations: 8 kB / 0.8915 GB, free: 4.516 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.453e-05/2.186, allocations: 11.97 kB / 0.8915 GB, free: 4.504 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4237/2.609, allocations: 15.37 MB / 0.9065 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.462e-05/2.609, allocations: 6.375 kB / 0.9066 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004434/2.614, allocations: 448.7 kB / 0.907 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01955/2.633, allocations: 3.34 MB / 0.9102 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008756/2.634, allocations: 84.33 kB / 0.9103 GB, free: 117.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02988/2.664, allocations: 16.46 MB / 0.9264 GB, free: 110.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003419/2.668, allocations: 4.418 MB / 0.9307 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03323/2.701, allocations: 11.24 MB / 0.9417 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/2.703, allocations: 0.4904 MB / 0.9422 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001925/2.705, allocations: 72.52 kB / 0.9422 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00631/2.711, allocations: 338.7 kB / 0.9426 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001323/2.713, allocations: 204.4 kB / 0.9428 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004124/2.713, allocations: 87.33 kB / 0.9428 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007443/2.721, allocations: 2.765 MB / 0.9455 GB, free: 104 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.52e-07/2.721, allocations: 0 / 0.9455 GB, free: 104 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01036/2.731, allocations: 1.526 MB / 0.947 GB, free: 104 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 36 ($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],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.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],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 182 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(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.03446/2.766, allocations: 13.2 MB / 0.9599 GB, free: 99.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02538/2.791, allocations: 9.182 MB / 0.9689 GB, free: 96.67 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/2.791, allocations: 3.812 kB / 0.9689 GB, free: 96.67 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01579/2.807, allocations: 4.621 MB / 0.9734 GB, free: 94.59 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004958/2.812, allocations: 0.5066 MB / 0.9739 GB, free: 94.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04232/2.854, allocations: 13.77 MB / 0.9873 GB, free: 88.92 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008505/2.863, allocations: 3.813 MB / 0.9911 GB, free: 86.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005781/2.869, allocations: 2.337 MB / 0.9933 GB, free: 84.67 MB / 0.5105 GB Notification: Performance of SimCode: time 1.312e-06/2.869, allocations: 0 / 0.9933 GB, free: 84.67 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.67/9.539, allocations: 313.1 MB / 1.299 GB, free: 141.3 MB / 0.5417 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat