Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001757/0.001757, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 225.4 MB / 240.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009986/0.0009986, allocations: 90.58 kB / 292.1 MB, free: 6.016 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2046/0.2046, allocations: 45.15 MB / 389.3 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.565e-05/4.576e-05, allocations: 3.984 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1165, allocations: 63.25 MB / 0.5115 GB, free: 6.684 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4623/0.5788, allocations: 109.3 MB / 0.6182 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.5791, allocations: 78.83 kB / 0.6183 GB, free: 0.75 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2562/0.8354, allocations: 98.75 MB / 0.7147 GB, free: 5.863 MB / 0.4948 GB Notification: Performance of FrontEnd: time 4.528e-06/0.8355, allocations: 0 / 0.7147 GB, free: 5.863 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004841/0.836, allocations: 87.94 kB / 0.7148 GB, free: 5.777 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01721/0.8532, allocations: 4.629 MB / 0.7193 GB, free: 1.078 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.643e-05/0.8533, allocations: 11.97 kB / 0.7193 GB, free: 1.066 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00514/0.8585, allocations: 0.9083 MB / 0.7202 GB, free: 148 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02749/0.886, allocations: 6.737 MB / 0.7268 GB, free: 9.387 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01555/0.9016, allocations: 5.356 MB / 0.732 GB, free: 3.969 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004378/0.9021, allocations: 332.6 kB / 0.7324 GB, free: 3.641 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002185/0.9043, allocations: 443.7 kB / 0.7328 GB, free: 3.207 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02993/0.9342, allocations: 10.99 MB / 0.7435 GB, free: 7.195 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003404/0.9346, allocations: 75.38 kB / 0.7436 GB, free: 7.121 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001647/0.9363, allocations: 207.9 kB / 0.7438 GB, free: 6.918 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001723/0.938, allocations: 1.022 MB / 0.7448 GB, free: 5.895 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3045/1.243, allocations: 9.157 MB / 0.7537 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05863/1.301, allocations: 47.63 MB / 0.8002 GB, free: 96.63 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/1.311, allocations: 4.104 MB / 0.8042 GB, free: 95.96 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002455/1.314, allocations: 1.807 MB / 0.806 GB, free: 95.92 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01216/1.326, allocations: 7.481 MB / 0.8133 GB, free: 92.12 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/1.326, allocations: 52.94 kB / 0.8134 GB, free: 92.07 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=180): time 4.168e-06/1.326, allocations: 0 / 0.8134 GB, free: 92.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236): time 0.07602/1.402, allocations: 25.6 MB / 0.8384 GB, free: 85.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/1.402, allocations: 207 kB / 0.8386 GB, free: 85.13 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005162/1.407, allocations: 3.749 MB / 0.8422 GB, free: 83.81 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005312/1.408, allocations: 64.16 kB / 0.8423 GB, free: 83.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001574/1.41, allocations: 3.236 MB / 0.8454 GB, free: 81.29 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008944/1.41, allocations: 0.8729 MB / 0.8463 GB, free: 80.65 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003487/1.411, allocations: 123.7 kB / 0.8464 GB, free: 80.55 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002604/1.411, allocations: 0.5804 MB / 0.847 GB, free: 80.13 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003817/1.415, allocations: 3.367 MB / 0.8503 GB, free: 78.84 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005561/1.42, allocations: 6.986 MB / 0.8571 GB, free: 72.69 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005872/1.426, allocations: 4.756 MB / 0.8617 GB, free: 71 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.925e-05/1.426, allocations: 37.38 kB / 0.8618 GB, free: 71 MB / 0.5261 GB Notification: Performance of matching and sorting (n=823) (initialization): time 0.03319/1.46, allocations: 15.33 MB / 0.8767 GB, free: 61.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.891e-05/1.46, allocations: 60 kB / 0.8768 GB, free: 61.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001461/1.46, allocations: 128 kB / 0.8769 GB, free: 60.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02054/1.48, allocations: 5.931 MB / 0.8827 GB, free: 57.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005143/1.486, allocations: 1.436 MB / 0.8841 GB, free: 56.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02869/1.514, allocations: 24.96 MB / 0.9085 GB, free: 31.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006889/1.521, allocations: 395.4 kB / 0.9089 GB, free: 31.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001643/1.523, allocations: 377.2 kB / 0.9092 GB, free: 31.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (746): * Single equations (assignments): 741 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002199/1.525, allocations: 0.5735 MB / 0.9098 GB, free: 30.52 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/1.526, allocations: 406.8 kB / 0.9102 GB, free: 30.12 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02703/1.553, allocations: 10.76 MB / 0.9207 GB, free: 19.34 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.619e-05/1.554, allocations: 24 kB / 0.9207 GB, free: 19.31 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.54e-05/1.554, allocations: 8 kB / 0.9207 GB, free: 19.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.276e-05/1.554, allocations: 15.95 kB / 0.9207 GB, free: 19.29 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04188/1.596, allocations: 20.14 MB / 0.9404 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.735e-05/1.596, allocations: 8 kB / 0.9404 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002147/1.598, allocations: 383.3 kB / 0.9408 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01927/1.617, allocations: 4.989 MB / 0.9456 GB, free: 9.312 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005678/1.618, allocations: 44 kB / 0.9457 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3833/2.001, allocations: 20.14 MB / 0.9654 GB, free: 132.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/2.001, allocations: 6.094 kB / 0.9654 GB, free: 132.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0344/2.035, allocations: 14.49 MB / 0.9795 GB, free: 130.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/2.037, allocations: 449.3 kB / 0.9799 GB, free: 130.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001387/2.038, allocations: 39.11 kB / 0.98 GB, free: 130.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0032/2.042, allocations: 173.8 kB / 0.9801 GB, free: 130.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001024/2.043, allocations: 156 kB / 0.9803 GB, free: 130.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000293/2.043, allocations: 64.48 kB / 0.9804 GB, free: 130.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.005051/2.048, allocations: 2.636 MB / 0.9829 GB, free: 130.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.42e-07/2.048, allocations: 0 / 0.9829 GB, free: 130.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007911/2.056, allocations: 1.334 MB / 0.9842 GB, free: 130.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03103/2.087, allocations: 16.3 MB / 1 GB, free: 125 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01245/2.1, allocations: 7.864 MB / 1.008 GB, free: 122.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/2.1, allocations: 2.188 kB / 1.008 GB, free: 122.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005033/2.105, allocations: 3.081 MB / 1.011 GB, free: 120.9 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003578/2.108, allocations: 495.6 kB / 1.011 GB, free: 120.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02805/2.136, allocations: 11.39 MB / 1.022 GB, free: 116.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004155/2.141, allocations: 3.6 MB / 1.026 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.005087/2.146, allocations: 1.977 MB / 1.028 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003325/2.149, allocations: 2.077 MB / 1.03 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of SimCode: time 7.11e-07/2.149, allocations: 0 / 1.03 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.159/2.308, allocations: 109.6 MB / 1.137 GB, free: 20.49 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002269/2.309, allocations: 195.1 kB / 1.137 GB, free: 20.26 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.765/7.074, allocations: 2.953 kB / 1.137 GB, free: 20.26 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat