Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 177.1 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009327/0.0009331, allocations: 101.7 kB / 292.1 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4221/0.4221, allocations: 44.22 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003707/0.0003708, allocations: 8 kB / 460 MB, free: 1.457 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3907, allocations: 61.91 MB / 0.5096 GB, free: 38.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1279/0.5186, allocations: 104.7 MB / 0.6119 GB, free: 6.383 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.5189, allocations: 83.92 kB / 0.612 GB, free: 6.305 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.542/1.061, allocations: 99.63 MB / 0.7093 GB, free: 94.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.624e-06/1.061, allocations: 3.5 kB / 0.7093 GB, free: 94.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003557/1.061, allocations: 99.77 kB / 0.7094 GB, free: 94.51 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: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.02966/1.091, allocations: 6.181 MB / 0.7154 GB, free: 92.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/1.091, allocations: 8.594 kB / 0.7154 GB, free: 92.38 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004131/1.095, allocations: 0.898 MB / 0.7163 GB, free: 92.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01518/1.11, allocations: 2.931 MB / 0.7192 GB, free: 91.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02236/1.133, allocations: 6.851 MB / 0.7259 GB, free: 91.24 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006118/1.133, allocations: 372.7 kB / 0.7262 GB, free: 91.23 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003111/1.137, allocations: 494.3 kB / 0.7267 GB, free: 91.22 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03857/1.175, allocations: 12.64 MB / 0.739 GB, free: 84.91 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004741/1.176, allocations: 72.61 kB / 0.7391 GB, free: 84.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002847/1.179, allocations: 244.8 kB / 0.7393 GB, free: 84.75 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002679/1.181, allocations: 1.24 MB / 0.7405 GB, free: 84.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03189/1.213, allocations: 10.79 MB / 0.7511 GB, free: 81.35 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07678/1.29, allocations: 57.98 MB / 0.8077 GB, free: 32.67 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01336/1.303, allocations: 5.372 MB / 0.813 GB, free: 27.16 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0219/1.325, allocations: 12.3 MB / 0.825 GB, free: 14.39 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.55e-05/1.325, allocations: 63.77 kB / 0.825 GB, free: 14.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=219): time 6.762e-06/1.325, allocations: 0 / 0.825 GB, free: 14.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=258): time 0.0669/1.392, allocations: 25.06 MB / 0.8495 GB, free: 4.902 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003939/1.396, allocations: 4.653 MB / 0.854 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009495/1.406, allocations: 4.107 MB / 0.858 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007459/1.407, allocations: 65.69 kB / 0.8581 GB, free: 11.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00352/1.41, allocations: 3.516 MB / 0.8615 GB, free: 8.086 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001966/1.412, allocations: 1.02 MB / 0.8625 GB, free: 7.074 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001273/1.414, allocations: 147.6 kB / 0.8627 GB, free: 6.934 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0009398/1.414, allocations: 0.6282 MB / 0.8633 GB, free: 6.301 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00727/1.422, allocations: 3.231 MB / 0.8665 GB, free: 3.066 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01121/1.433, allocations: 7.488 MB / 0.8738 GB, free: 9.48 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009878/1.443, allocations: 4.773 MB / 0.8784 GB, free: 4.703 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001889/1.443, allocations: 44 kB / 0.8785 GB, free: 4.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=985) (initialization): time 0.35/1.793, allocations: 13.26 MB / 0.8914 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/1.793, allocations: 69.91 kB / 0.8915 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01433/1.808, allocations: 6.497 MB / 0.8978 GB, free: 123.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01219/1.82, allocations: 3.352 MB / 0.9011 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006837/1.827, allocations: 1.734 MB / 0.9028 GB, free: 123.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02233/1.849, allocations: 16.21 MB / 0.9186 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008342/1.858, allocations: 0.7711 MB / 0.9194 GB, free: 115.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001826/1.859, allocations: 455.7 kB / 0.9198 GB, free: 115.3 MB / 0.5261 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 () * Number of clocked 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.005394/1.865, allocations: 2.332 MB / 0.9221 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/1.866, allocations: 419.6 kB / 0.9225 GB, free: 114.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01462/1.881, allocations: 7.097 MB / 0.9294 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01305/1.894, allocations: 6.435 MB / 0.9357 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.638e-05/1.894, allocations: 7.781 kB / 0.9357 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.805e-05/1.894, allocations: 13.97 kB / 0.9357 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03056/1.924, allocations: 15.41 MB / 0.9508 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.373e-05/1.924, allocations: 9.438 kB / 0.9508 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002344/1.927, allocations: 450.1 kB / 0.9512 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00996/1.937, allocations: 3.344 MB / 0.9545 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008447/1.938, allocations: 80.98 kB / 0.9545 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01652/1.954, allocations: 16.85 MB / 0.971 GB, free: 95.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002145/1.956, allocations: 4.45 MB / 0.9754 GB, free: 90.82 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01821/1.975, allocations: 11.31 MB / 0.9864 GB, free: 86.16 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002052/1.977, allocations: 494.1 kB / 0.9869 GB, free: 85.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001195/1.978, allocations: 70.75 kB / 0.9869 GB, free: 85.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003128/1.981, allocations: 340.3 kB / 0.9873 GB, free: 85.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000679/1.982, allocations: 194.7 kB / 0.9875 GB, free: 85.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002315/1.982, allocations: 86.27 kB / 0.9875 GB, free: 85.25 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005498/1.988, allocations: 2.878 MB / 0.9903 GB, free: 82.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.623e-06/1.988, allocations: 0 / 0.9903 GB, free: 82.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009194/1.997, allocations: 1.535 MB / 0.9918 GB, free: 81.38 MB / 0.5261 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 () * Number of clocked 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.01891/2.016, allocations: 13.26 MB / 1.005 GB, free: 68.88 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0162/2.032, allocations: 9.365 MB / 1.014 GB, free: 59.41 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.845e-05/2.032, allocations: 4 kB / 1.014 GB, free: 59.41 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008441/2.041, allocations: 4.653 MB / 1.018 GB, free: 54.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003612/2.044, allocations: 0.5145 MB / 1.019 GB, free: 54.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4106/2.455, allocations: 151.6 MB / 1.167 GB, free: 69.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008192/2.463, allocations: 3.801 MB / 1.171 GB, free: 68.37 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.007841/2.471, allocations: 2.254 MB / 1.173 GB, free: 68.32 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005487/2.476, allocations: 2.27 MB / 1.175 GB, free: 68.29 MB / 0.5417 GB Notification: Performance of SimCode: time 9.718e-06/2.476, allocations: 0 / 1.175 GB, free: 68.29 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1806/2.657, allocations: 106.4 MB / 1.279 GB, free: 5.48 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/2.657, allocations: 204.5 kB / 1.279 GB, free: 5.242 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.538/8.195, allocations: 0 / 1.279 GB, free: 5.242 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat