Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00171/0.00171, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 98.67 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.224/0.224, allocations: 45.15 MB / 383.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.083e-05, allocations: 4 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1343, allocations: 63.24 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4536/0.5879, allocations: 104.9 MB / 0.6069 GB, free: 13.57 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002031/0.5882, allocations: 74.28 kB / 0.607 GB, free: 13.54 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2611/0.8493, allocations: 101.5 MB / 0.7061 GB, free: 284 kB / 490.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.8493, allocations: 4 kB / 0.7061 GB, free: 280 kB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003039/0.8496, allocations: 96 kB / 0.7061 GB, free: 184 kB / 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.02985/0.8795, allocations: 6.215 MB / 0.7122 GB, free: 9.898 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.8796, allocations: 8.031 kB / 0.7122 GB, free: 9.891 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01674/0.8963, allocations: 3.102 MB / 0.7153 GB, free: 6.777 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01678/0.9131, allocations: 6.045 MB / 0.7212 GB, free: 0.668 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003463/0.9135, allocations: 156 kB / 0.7213 GB, free: 0.5156 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002707/0.9163, allocations: 295.8 kB / 0.7216 GB, free: 232 kB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01559/0.9319, allocations: 7.321 MB / 0.7287 GB, free: 8.898 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02625/0.9582, allocations: 10.93 MB / 0.7394 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004493/0.9587, allocations: 67.34 kB / 0.7395 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002513/0.9612, allocations: 36 kB / 0.7395 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002506/0.9637, allocations: 1.241 MB / 0.7407 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3749/1.339, allocations: 56.99 MB / 0.7964 GB, free: 91.05 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005696/1.344, allocations: 3.604 MB / 0.7999 GB, free: 90.33 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003625/1.348, allocations: 2.287 MB / 0.8021 GB, free: 90.28 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001382/1.349, allocations: 1.649 MB / 0.8037 GB, free: 88.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/1.35, allocations: 60.97 kB / 0.8038 GB, free: 88.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=226): time 5.38e-06/1.35, allocations: 0 / 0.8038 GB, free: 88.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=259): time 0.04078/1.39, allocations: 20.51 MB / 0.8238 GB, free: 84.26 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.579e-05/1.39, allocations: 261 kB / 0.8241 GB, free: 83.97 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005861/1.396, allocations: 3.453 MB / 0.8275 GB, free: 83.59 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008229/1.397, allocations: 32.2 kB / 0.8275 GB, free: 83.56 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002449/1.4, allocations: 3.558 MB / 0.831 GB, free: 81.73 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001516/1.401, allocations: 0.9945 MB / 0.8319 GB, free: 81 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000651/1.402, allocations: 3.531 kB / 0.8319 GB, free: 81 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003924/1.402, allocations: 0.6331 MB / 0.8326 GB, free: 80.55 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004126/1.406, allocations: 2.968 MB / 0.8355 GB, free: 79.55 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007069/1.413, allocations: 7.337 MB / 0.8426 GB, free: 72.67 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006919/1.42, allocations: 4.574 MB / 0.8471 GB, free: 71.31 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001726/1.421, allocations: 46.09 kB / 0.8471 GB, free: 71.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1009) (initialization): time 0.02763/1.448, allocations: 12.06 MB / 0.8589 GB, free: 67.86 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.661e-05/1.448, allocations: 71.5 kB / 0.859 GB, free: 67.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01229/1.461, allocations: 6.254 MB / 0.8651 GB, free: 66.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01036/1.471, allocations: 3.273 MB / 0.8683 GB, free: 65.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005958/1.477, allocations: 1.784 MB / 0.87 GB, free: 65.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01408/1.491, allocations: 15.05 MB / 0.8847 GB, free: 51.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007928/1.499, allocations: 0.631 MB / 0.8853 GB, free: 51.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001836/1.501, allocations: 463.8 kB / 0.8858 GB, free: 51.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 708 * 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 (930): * Single equations (assignments): 910 * 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.001652/1.503, allocations: 0.5117 MB / 0.8863 GB, free: 50.59 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01349/1.516, allocations: 6.934 MB / 0.893 GB, free: 45.24 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001416/1.518, allocations: 391 kB / 0.8934 GB, free: 44.85 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01384/1.532, allocations: 6.791 MB / 0.9001 GB, free: 39.77 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01196/1.544, allocations: 6.156 MB / 0.9061 GB, free: 35.16 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.52e-05/1.544, allocations: 8 kB / 0.9061 GB, free: 35.15 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.105e-05/1.544, allocations: 17.27 kB / 0.9061 GB, free: 35.15 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0271/1.571, allocations: 14.75 MB / 0.9205 GB, free: 22.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-05/1.571, allocations: 4 kB / 0.9205 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/1.573, allocations: 439.4 kB / 0.9209 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009427/1.583, allocations: 3.272 MB / 0.9241 GB, free: 18.61 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007471/1.583, allocations: 47.92 kB / 0.9242 GB, free: 18.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01558/1.599, allocations: 16 MB / 0.9398 GB, free: 1.898 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002819/1.602, allocations: 4.236 MB / 0.9439 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02188/1.624, allocations: 10.79 MB / 0.9545 GB, free: 2.25 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/1.625, allocations: 455.8 kB / 0.9549 GB, free: 1.781 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001537/1.627, allocations: 27.98 kB / 0.9549 GB, free: 1.754 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004073/1.631, allocations: 303.5 kB / 0.9552 GB, free: 1.457 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001027/1.632, allocations: 197.5 kB / 0.9554 GB, free: 1.262 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006478/1.632, allocations: 79.95 kB / 0.9555 GB, free: 1.184 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.3251/1.958, allocations: 2.281 MB / 0.9577 GB, free: 130.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.51e-07/1.958, allocations: 0 / 0.9577 GB, free: 130.4 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00877/1.966, allocations: 1.399 MB / 0.9591 GB, free: 130.4 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 36 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 (195): * Single equations (assignments): 181 * 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.02101/1.987, allocations: 12.37 MB / 0.9711 GB, free: 127.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01458/2.002, allocations: 8.812 MB / 0.9798 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/2.002, allocations: 2.453 kB / 0.9798 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008161/2.01, allocations: 4.516 MB / 0.9842 GB, free: 125.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002909/2.013, allocations: 423.3 kB / 0.9846 GB, free: 125.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02599/2.039, allocations: 12.82 MB / 0.9971 GB, free: 122.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003691/2.043, allocations: 3.792 MB / 1.001 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005643/2.049, allocations: 2.318 MB / 1.003 GB, free: 121.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003017/2.052, allocations: 2.236 MB / 1.005 GB, free: 121.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.052e-06/2.052, allocations: 0 / 1.005 GB, free: 121.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.151/2.203, allocations: 99.24 MB / 1.102 GB, free: 56.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/2.203, allocations: 130.6 kB / 1.102 GB, free: 55.97 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.578/6.781, allocations: 0 / 1.102 GB, free: 55.97 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat