Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.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.Spring,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring",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.001582/0.001587, allocations: 185 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.127/2.127, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00116/0.00116, allocations: 91.39 kB / 270.9 MB, free: 8.383 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.5322/0.5322, allocations: 43.56 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000498/0.000498, allocations: 12 kB / 431.5 MB, free: 6.094 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1389, allocations: 58.84 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4972/0.6362, allocations: 104.8 MB / 0.5812 GB, free: 13.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/0.6365, allocations: 75.97 kB / 0.5813 GB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3794/1.016, allocations: 86.72 MB / 0.666 GB, free: 6.363 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.346e-06/1.016, allocations: 3.938 kB / 0.666 GB, free: 6.359 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002585/1.016, allocations: 84 kB / 0.6661 GB, free: 6.277 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.0166/1.033, allocations: 4.227 MB / 0.6702 GB, free: 1.977 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/1.033, allocations: 8.031 kB / 0.6702 GB, free: 1.969 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003234/1.036, allocations: 0.7787 MB / 0.671 GB, free: 1.18 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3653/1.402, allocations: 2.442 MB / 0.6733 GB, free: 91.19 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01999/1.422, allocations: 5.198 MB / 0.6784 GB, free: 90.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005093/1.422, allocations: 331.7 kB / 0.6787 GB, free: 90.92 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002329/1.425, allocations: 440.3 kB / 0.6791 GB, free: 90.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03314/1.458, allocations: 10.74 MB / 0.6896 GB, free: 87.93 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003272/1.458, allocations: 67.53 kB / 0.6897 GB, free: 87.93 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001876/1.46, allocations: 216 kB / 0.6899 GB, free: 87.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002526/1.463, allocations: 1.039 MB / 0.6909 GB, free: 87.92 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02725/1.49, allocations: 8.443 MB / 0.6992 GB, free: 87.85 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07005/1.56, allocations: 48.08 MB / 0.7461 GB, free: 53.96 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01391/1.574, allocations: 3.242 MB / 0.7493 GB, free: 52.55 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01352/1.588, allocations: 5.994 MB / 0.7551 GB, free: 48.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/1.588, allocations: 51.31 kB / 0.7552 GB, free: 48.77 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 5.25e-06/1.588, allocations: 0 / 0.7552 GB, free: 48.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.04712/1.635, allocations: 9.791 MB / 0.7648 GB, free: 44.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/1.635, allocations: 200.1 kB / 0.7649 GB, free: 43.93 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01237/1.647, allocations: 3.665 MB / 0.7685 GB, free: 42.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003838/1.648, allocations: 51.55 kB / 0.7686 GB, free: 42.55 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003586/1.651, allocations: 3.108 MB / 0.7716 GB, free: 40.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001154/1.653, allocations: 0.639 MB / 0.7722 GB, free: 39.64 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001052/1.654, allocations: 124.7 kB / 0.7723 GB, free: 39.55 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0009012/1.655, allocations: 0.5579 MB / 0.7729 GB, free: 39.13 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007554/1.662, allocations: 1.663 MB / 0.7745 GB, free: 38.64 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01111/1.673, allocations: 5.474 MB / 0.7799 GB, free: 32.81 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/1.684, allocations: 2.951 MB / 0.7827 GB, free: 31.62 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002211/1.684, allocations: 43.56 kB / 0.7828 GB, free: 31.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01921/1.704, allocations: 6.781 MB / 0.7894 GB, free: 29.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/1.704, allocations: 65.19 kB / 0.7895 GB, free: 29.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002353/1.704, allocations: 135.8 kB / 0.7896 GB, free: 29.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002253/1.704, allocations: 198.3 kB / 0.7898 GB, free: 29.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008675/1.713, allocations: 1.447 MB / 0.7912 GB, free: 28.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003046/1.713, allocations: 266.1 kB / 0.7915 GB, free: 28.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007245/1.721, allocations: 381.1 kB / 0.7918 GB, free: 28.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001423/1.722, allocations: 373.2 kB / 0.7922 GB, free: 28.64 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[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 (763): * Single equations (assignments): 760 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005654/1.728, allocations: 2.035 MB / 0.7942 GB, free: 27.67 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000918/1.729, allocations: 358.5 kB / 0.7945 GB, free: 27.47 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003996/1.733, allocations: 1.333 MB / 0.7958 GB, free: 26.92 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.568e-05/1.733, allocations: 18.56 kB / 0.7958 GB, free: 26.92 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/1.733, allocations: 0 / 0.7958 GB, free: 26.92 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-05/1.733, allocations: 15.05 kB / 0.7958 GB, free: 26.92 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01734/1.75, allocations: 5.85 MB / 0.8016 GB, free: 24.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.523e-05/1.75, allocations: 20.78 kB / 0.8016 GB, free: 24.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/1.752, allocations: 283.4 kB / 0.8018 GB, free: 24.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.023e-05/1.752, allocations: 25.84 kB / 0.8019 GB, free: 24.24 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002026/1.753, allocations: 54.45 kB / 0.8019 GB, free: 24.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.984e-05/1.753, allocations: 31.77 kB / 0.8019 GB, free: 24.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.147e-05/1.753, allocations: 27.56 kB / 0.802 GB, free: 24.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00729/1.76, allocations: 5.34 MB / 0.8072 GB, free: 19.59 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002212/1.762, allocations: 0.5371 MB / 0.8077 GB, free: 19.23 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001134/1.763, allocations: 52.86 kB / 0.8078 GB, free: 19.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003008/1.766, allocations: 93.28 kB / 0.8079 GB, free: 19.19 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004068/1.767, allocations: 152.5 kB / 0.808 GB, free: 19.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001495/1.767, allocations: 68.67 kB / 0.8081 GB, free: 19.12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007589/1.775, allocations: 2.564 MB / 0.8106 GB, free: 17.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.292e-06/1.775, allocations: 0 / 0.8106 GB, free: 17.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007419/1.782, allocations: 0.9204 MB / 0.8115 GB, free: 17.04 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * 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 (146): * Single equations (assignments): 143 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008323/1.791, allocations: 10.23 MB / 0.8215 GB, free: 6.547 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009227/1.8, allocations: 3.768 MB / 0.8251 GB, free: 3.246 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.022e-05/1.8, allocations: 0 / 0.8251 GB, free: 3.246 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001706/1.802, allocations: 0.7479 MB / 0.8259 GB, free: 2.582 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003697/1.805, allocations: 441.9 kB / 0.8263 GB, free: 2.203 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4193/2.225, allocations: 114 MB / 0.9376 GB, free: 46.89 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008423/2.233, allocations: 3.273 MB / 0.9408 GB, free: 46.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004507/2.238, allocations: 1.91 MB / 0.9426 GB, free: 46.09 MB / 0.5261 GB Notification: Performance of SimCode: time 2.805e-06/2.238, allocations: 4.625 kB / 0.9426 GB, free: 46.09 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.086/6.323, allocations: 75.82 MB / 1.017 GB, free: 32.27 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat