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.001449/0.001449, allocations: 198.7 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.2 MB / 245 MB, free: 7.629 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008646/0.0008645, allocations: 95.75 kB / 297.3 MB, free: 6.207 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.38/0.38, allocations: 45.23 MB / 394.7 MB, free: 31.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.000262, allocations: 8 kB / 468.5 MB, free: 7.648 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4084/0.4087, allocations: 63.24 MB / 0.5193 GB, free: 43.7 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1467/0.5554, allocations: 109.4 MB / 0.6261 GB, free: 12.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.5557, allocations: 85.11 kB / 0.6262 GB, free: 12.12 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5503/1.106, allocations: 98.68 MB / 0.7226 GB, free: 97.18 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.044e-06/1.106, allocations: 0 / 0.7226 GB, free: 97.18 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000318/1.106, allocations: 81.91 kB / 0.7226 GB, free: 97.18 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.0177/1.124, allocations: 5.043 MB / 0.7276 GB, free: 95.14 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/1.124, allocations: 10.42 kB / 0.7276 GB, free: 95.14 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004638/1.129, allocations: 0.9087 MB / 0.7285 GB, free: 95.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02738/1.156, allocations: 6.727 MB / 0.735 GB, free: 94.74 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01696/1.173, allocations: 5.395 MB / 0.7403 GB, free: 94.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004556/1.174, allocations: 325.5 kB / 0.7406 GB, free: 94.06 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002499/1.176, allocations: 440.5 kB / 0.741 GB, free: 94.06 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02331/1.2, allocations: 11.07 MB / 0.7518 GB, free: 90.68 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002275/1.2, allocations: 68.41 kB / 0.7519 GB, free: 90.64 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008216/1.201, allocations: 209.1 kB / 0.7521 GB, free: 90.53 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001247/1.202, allocations: 1.019 MB / 0.7531 GB, free: 90.34 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02007/1.222, allocations: 9.306 MB / 0.7622 GB, free: 87.45 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05323/1.275, allocations: 47.64 MB / 0.8087 GB, free: 51.53 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/1.286, allocations: 4.133 MB / 0.8127 GB, free: 49.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01285/1.298, allocations: 7.481 MB / 0.8201 GB, free: 45.51 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.712e-05/1.299, allocations: 54.81 kB / 0.8201 GB, free: 45.46 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 5.781e-06/1.299, allocations: 4 kB / 0.8201 GB, free: 45.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=236): time 0.1521/1.451, allocations: 40.94 MB / 0.8601 GB, free: 7.621 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/1.451, allocations: 209.9 kB / 0.8603 GB, free: 7.375 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008763/1.46, allocations: 3.789 MB / 0.864 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007292/1.46, allocations: 57.7 kB / 0.8641 GB, free: 3.508 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002541/1.463, allocations: 3.234 MB / 0.8672 GB, free: 276 kB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001539/1.465, allocations: 0.8785 MB / 0.8681 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/1.466, allocations: 130.4 kB / 0.8682 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000859/1.467, allocations: 0.5628 MB / 0.8687 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006216/1.473, allocations: 3.425 MB / 0.8721 GB, free: 11.27 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0096/1.482, allocations: 7.053 MB / 0.879 GB, free: 2.41 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007794/1.49, allocations: 4.778 MB / 0.8836 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001106/1.49, allocations: 36 kB / 0.8837 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=823) (initialization): time 0.3392/1.83, allocations: 15.45 MB / 0.8988 GB, free: 113 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/1.83, allocations: 57.75 kB / 0.8988 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000236/1.83, allocations: 127.9 kB / 0.8989 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0225/1.853, allocations: 5.941 MB / 0.9047 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005091/1.858, allocations: 1.43 MB / 0.9061 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03528/1.893, allocations: 25.7 MB / 0.9312 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006538/1.9, allocations: 391.3 kB / 0.9316 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00132/1.901, allocations: 384.2 kB / 0.932 GB, free: 107.9 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 () * Number of clocked 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.004724/1.906, allocations: 2.217 MB / 0.9341 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009525/1.907, allocations: 399 kB / 0.9345 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02764/1.934, allocations: 10.82 MB / 0.9451 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.243e-05/1.934, allocations: 29.98 kB / 0.9451 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/1.934, allocations: 7.625 kB / 0.9451 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.33e-05/1.934, allocations: 16.8 kB / 0.9451 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04057/1.975, allocations: 20.2 MB / 0.9649 GB, free: 95.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.815e-05/1.975, allocations: 7.062 kB / 0.9649 GB, free: 95.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/1.977, allocations: 383.7 kB / 0.9652 GB, free: 95.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01844/1.996, allocations: 4.998 MB / 0.9701 GB, free: 95.13 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005897/1.996, allocations: 46.44 kB / 0.9702 GB, free: 95.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02422/2.021, allocations: 20.88 MB / 0.9905 GB, free: 85.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/2.021, allocations: 14.89 kB / 0.9906 GB, free: 85.21 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02851/2.049, allocations: 14.59 MB / 1.005 GB, free: 79.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001725/2.051, allocations: 445.9 kB / 1.005 GB, free: 79.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009193/2.052, allocations: 41.78 kB / 1.005 GB, free: 79.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002262/2.054, allocations: 173.9 kB / 1.005 GB, free: 78.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005928/2.055, allocations: 151.8 kB / 1.006 GB, free: 78.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002053/2.055, allocations: 60 kB / 1.006 GB, free: 78.65 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003834/2.059, allocations: 2.676 MB / 1.008 GB, free: 75.97 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.31e-07/2.059, allocations: 0 / 1.008 GB, free: 75.97 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006717/2.066, allocations: 1.332 MB / 1.01 GB, free: 74.65 MB / 0.5261 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 () * Number of clocked 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.0276/2.093, allocations: 16.39 MB / 1.026 GB, free: 58.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01159/2.105, allocations: 7.964 MB / 1.033 GB, free: 50.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/2.105, allocations: 4 kB / 1.033 GB, free: 50.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004078/2.109, allocations: 3.108 MB / 1.036 GB, free: 47.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003415/2.112, allocations: 490.5 kB / 1.037 GB, free: 46.93 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3269/2.439, allocations: 109 MB / 1.143 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006009/2.445, allocations: 3.607 MB / 1.147 GB, free: 108.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005424/2.451, allocations: 1.975 MB / 1.149 GB, free: 108 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003287/2.454, allocations: 2.072 MB / 1.151 GB, free: 108 MB / 0.5573 GB Notification: Performance of SimCode: time 1.503e-06/2.454, allocations: 0 / 1.151 GB, free: 108 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1725/2.627, allocations: 108.4 MB / 1.257 GB, free: 61.88 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/2.627, allocations: 215.9 kB / 1.257 GB, free: 61.64 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.147/7.774, allocations: 0 / 1.257 GB, free: 61.64 MB / 0.5573 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