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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0009612/0.0009612, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.7 MB / 246.8 MB, free: 11.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1898/0.1898, allocations: 46.2 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002633, allocations: 8 kB / 419.6 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1347, allocations: 63.56 MB / 483.2 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3206/0.4553, allocations: 45.45 MB / 0.5162 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02667/0.4821, allocations: 9.951 MB / 0.5259 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01198/0.4941, allocations: 206.6 kB / 0.5261 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002167/0.4963, allocations: 453.1 kB / 0.5266 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006542/0.5029, allocations: 1.863 MB / 0.5284 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002412/0.5053, allocations: 0.8359 MB / 0.5292 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01227/0.5176, allocations: 8.002 MB / 0.537 GB, free: 4.371 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007609/0.5252, allocations: 4.664 MB / 0.5416 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002963/0.5282, allocations: 1.308 MB / 0.5429 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003439/0.5317, allocations: 2.404 MB / 0.5452 GB, free: 168 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.5327, allocations: 175.7 kB / 0.5454 GB, free: 168 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003021/0.5358, allocations: 1.275 MB / 0.5466 GB, free: 15.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002714/0.5385, allocations: 1.956 MB / 0.5485 GB, free: 14.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004157/0.5427, allocations: 2.241 MB / 0.5507 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009774/0.5525, allocations: 7.437 MB / 0.558 GB, free: 4.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.433e-06/0.5525, allocations: 4 kB / 0.558 GB, free: 4.578 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5525, allocations: 0 / 0.558 GB, free: 4.578 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003096/0.5528, allocations: 0 / 0.558 GB, free: 4.578 MB / 398.1 MB 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.0135/0.5663, allocations: 4.725 MB / 0.5626 GB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.127e-05/0.5664, allocations: 8.875 kB / 0.5626 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003088/0.5695, allocations: 0.8121 MB / 0.5634 GB, free: 15.01 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04034/0.6099, allocations: 6.039 MB / 0.5693 GB, free: 8.961 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008266/0.6182, allocations: 3.773 MB / 0.573 GB, free: 5.172 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002741/0.6185, allocations: 245 kB / 0.5732 GB, free: 4.969 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001384/0.6199, allocations: 334.2 kB / 0.5735 GB, free: 4.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02137/0.6413, allocations: 10.81 MB / 0.5841 GB, free: 9.234 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002287/0.6415, allocations: 55.42 kB / 0.5841 GB, free: 9.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009992/0.6426, allocations: 158.4 kB / 0.5843 GB, free: 9.062 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003341/0.6459, allocations: 2.004 MB / 0.5863 GB, free: 7.07 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01956/0.6655, allocations: 9.258 MB / 0.5953 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05088/0.7164, allocations: 41 MB / 0.6353 GB, free: 3.766 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01196/0.7284, allocations: 4.236 MB / 0.6395 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002788/0.7312, allocations: 1.895 MB / 0.6413 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/0.7425, allocations: 7.501 MB / 0.6486 GB, free: 5.664 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.7426, allocations: 59.48 kB / 0.6487 GB, free: 5.594 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 4.338e-06/0.7426, allocations: 4 kB / 0.6487 GB, free: 5.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1679/0.9105, allocations: 41.12 MB / 0.6889 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/0.9107, allocations: 213.9 kB / 0.6891 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007093/0.9178, allocations: 4.324 MB / 0.6933 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000605/0.9184, allocations: 57.7 kB / 0.6933 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002393/0.9208, allocations: 3.216 MB / 0.6965 GB, free: 4.535 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001194/0.922, allocations: 0.8751 MB / 0.6973 GB, free: 3.668 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007402/0.9228, allocations: 0.5273 MB / 0.6979 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.9229, allocations: 309.1 kB / 0.6982 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004758/0.9277, allocations: 3.495 MB / 0.7016 GB, free: 15.33 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007286/0.935, allocations: 7.11 MB / 0.7085 GB, free: 6.43 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2977/1.233, allocations: 11.36 MB / 0.7196 GB, free: 186.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001301/1.233, allocations: 36.94 kB / 0.7196 GB, free: 186.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.04126/1.274, allocations: 15.71 MB / 0.735 GB, free: 182.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001239/1.274, allocations: 59.41 kB / 0.735 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002048/1.275, allocations: 129.9 kB / 0.7352 GB, free: 182.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02316/1.298, allocations: 6.09 MB / 0.7411 GB, free: 181.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005075/1.303, allocations: 1.435 MB / 0.7425 GB, free: 181.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02899/1.332, allocations: 25.68 MB / 0.7676 GB, free: 161.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005494/1.337, allocations: 399 kB / 0.768 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/1.338, allocations: 380 kB / 0.7683 GB, free: 160.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * 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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003485/1.342, allocations: 2.212 MB / 0.7705 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008172/1.343, allocations: 396.5 kB / 0.7709 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0272/1.37, allocations: 11.08 MB / 0.7817 GB, free: 147.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-05/1.37, allocations: 26.03 kB / 0.7817 GB, free: 147.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/1.37, allocations: 12 kB / 0.7817 GB, free: 147 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.773e-05/1.37, allocations: 11.95 kB / 0.7817 GB, free: 147 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03941/1.41, allocations: 20.6 MB / 0.8019 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.583e-05/1.41, allocations: 4 kB / 0.8019 GB, free: 126.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001996/1.412, allocations: 387.4 kB / 0.8022 GB, free: 125.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01951/1.431, allocations: 5.182 MB / 0.8073 GB, free: 120.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005186/1.432, allocations: 51.12 kB / 0.8073 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0228/1.455, allocations: 20.79 MB / 0.8276 GB, free: 99.46 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.842e-06/1.455, allocations: 8.547 kB / 0.8277 GB, free: 99.46 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02886/1.483, allocations: 14.32 MB / 0.8416 GB, free: 85.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/1.485, allocations: 455.8 kB / 0.8421 GB, free: 84.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008306/1.486, allocations: 44 kB / 0.8421 GB, free: 84.55 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002334/1.488, allocations: 177.5 kB / 0.8423 GB, free: 84.38 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006438/1.489, allocations: 160.9 kB / 0.8424 GB, free: 84.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001904/1.489, allocations: 67.98 kB / 0.8425 GB, free: 84.16 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003637/1.492, allocations: 2.726 MB / 0.8452 GB, free: 81.43 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.01e-07/1.492, allocations: 0.75 kB / 0.8452 GB, free: 81.43 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005332/1.498, allocations: 1.313 MB / 0.8464 GB, free: 80.12 MB / 0.545 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02876/1.527, allocations: 14.95 MB / 0.861 GB, free: 65.08 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01028/1.537, allocations: 8.078 MB / 0.8689 GB, free: 57.02 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/1.537, allocations: 192 / 0.8689 GB, free: 57.02 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003639/1.541, allocations: 3.176 MB / 0.872 GB, free: 53.84 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005605/1.546, allocations: 0.5094 MB / 0.8725 GB, free: 53.34 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3467/1.893, allocations: 76.72 MB / 0.9475 GB, free: 166.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003279/1.896, allocations: 3.52 MB / 0.9509 GB, free: 165.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004488/1.901, allocations: 1.959 MB / 0.9528 GB, free: 165.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002219/1.903, allocations: 2.074 MB / 0.9548 GB, free: 163.7 MB / 0.545 GB Notification: Performance of SimCode: time 6.11e-07/1.903, allocations: 0 / 0.9548 GB, free: 163.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/2.036, allocations: 104.7 MB / 1.057 GB, free: 63.84 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/2.036, allocations: 232.8 kB / 1.057 GB, free: 63.59 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.99/6.026, allocations: 0 / 1.057 GB, free: 63.59 MB / 0.545 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches