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: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001179/0.001179, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001307/0.001307, allocations: 201.2 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2271/0.2271, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 79.88 kB / 481.3 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4173/0.419, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01678/0.4358, allocations: 12.03 MB / 0.5427 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.4487, allocations: 4.304 MB / 0.5469 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003944/0.4527, allocations: 76.56 kB / 0.547 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005822/0.4586, allocations: 2.738 MB / 0.5497 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006842/0.4655, allocations: 1.969 MB / 0.5516 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002507/0.468, allocations: 0.9086 MB / 0.5525 GB, free: 11.64 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009084/0.4771, allocations: 5.677 MB / 0.558 GB, free: 5.957 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004324/0.4815, allocations: 3.359 MB / 0.5613 GB, free: 2.555 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002977/0.4845, allocations: 1.709 MB / 0.563 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003642/0.4881, allocations: 2.512 MB / 0.5654 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009871/0.4891, allocations: 387.9 kB / 0.5658 GB, free: 13.94 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00371/0.4929, allocations: 1.389 MB / 0.5672 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002923/0.4958, allocations: 2.163 MB / 0.5693 GB, free: 10.38 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004808/0.5006, allocations: 2.431 MB / 0.5716 GB, free: 7.938 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01206/0.5127, allocations: 7.868 MB / 0.5793 GB, free: 40 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.237e-05/0.5128, allocations: 12 kB / 0.5793 GB, free: 28 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.5128, allocations: 0 / 0.5793 GB, free: 28 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002876/0.5131, allocations: 0 / 0.5793 GB, free: 28 kB / 430.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.01609/0.5292, allocations: 5.619 MB / 0.5848 GB, free: 10.32 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.568e-05/0.5293, allocations: 12.03 kB / 0.5848 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0112/0.5405, allocations: 2.505 MB / 0.5873 GB, free: 7.801 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008013/0.5485, allocations: 3.377 MB / 0.5906 GB, free: 4.367 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.5487, allocations: 246.5 kB / 0.5908 GB, free: 4.125 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007327/0.5495, allocations: 335.6 kB / 0.5911 GB, free: 3.797 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01983/0.5693, allocations: 10.88 MB / 0.6018 GB, free: 8.168 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001536/0.5695, allocations: 51.59 kB / 0.6018 GB, free: 8.117 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004477/0.57, allocations: 159.8 kB / 0.602 GB, free: 7.961 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003239/0.5732, allocations: 1.998 MB / 0.6039 GB, free: 5.957 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02045/0.5937, allocations: 9.448 MB / 0.6131 GB, free: 12.49 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06834/0.6621, allocations: 41.12 MB / 0.6533 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01525/0.6774, allocations: 4.262 MB / 0.6575 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004291/0.6817, allocations: 1.931 MB / 0.6593 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.018/0.6997, allocations: 7.615 MB / 0.6668 GB, free: 3.82 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.656e-05/0.6999, allocations: 55.5 kB / 0.6668 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 9.127e-06/0.6999, allocations: 0 / 0.6668 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1711/0.871, allocations: 41.17 MB / 0.707 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.8711, allocations: 205.9 kB / 0.7072 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008155/0.8793, allocations: 4.31 MB / 0.7114 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007105/0.8801, allocations: 61.7 kB / 0.7115 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002476/0.8825, allocations: 3.291 MB / 0.7147 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001238/0.8838, allocations: 0.9224 MB / 0.7156 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002238/0.886, allocations: 1.361 MB / 0.7169 GB, free: 252 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.3233/1.209, allocations: 312.9 kB / 0.7172 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007231/1.217, allocations: 3.621 MB / 0.7208 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007969/1.225, allocations: 7.297 MB / 0.7279 GB, free: 158.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01361/1.238, allocations: 11.62 MB / 0.7392 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002659/1.239, allocations: 35.03 kB / 0.7393 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.0391/1.278, allocations: 16.23 MB / 0.7551 GB, free: 139.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.089e-05/1.278, allocations: 60 kB / 0.7552 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/1.278, allocations: 128 kB / 0.7553 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02203/1.3, allocations: 6.221 MB / 0.7614 GB, free: 133.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005075/1.305, allocations: 1.482 MB / 0.7628 GB, free: 132 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02936/1.335, allocations: 27.64 MB / 0.7898 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006319/1.341, allocations: 409.5 kB / 0.7902 GB, free: 103.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001014/1.342, allocations: 384 kB / 0.7906 GB, free: 103.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * 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 (779): * Single equations (assignments): 774 * 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.004187/1.346, allocations: 2.227 MB / 0.7928 GB, free: 101.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.347, allocations: 415.2 kB / 0.7932 GB, free: 101.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02655/1.374, allocations: 11.29 MB / 0.8042 GB, free: 89.76 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.995e-05/1.374, allocations: 27.83 kB / 0.8042 GB, free: 89.73 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.995e-05/1.374, allocations: 12 kB / 0.8042 GB, free: 89.72 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.118e-05/1.374, allocations: 7.969 kB / 0.8042 GB, free: 89.71 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0413/1.415, allocations: 20.66 MB / 0.8244 GB, free: 68.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.036e-05/1.415, allocations: 8 kB / 0.8244 GB, free: 68.69 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002104/1.418, allocations: 389.3 kB / 0.8248 GB, free: 68.31 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0199/1.437, allocations: 5.308 MB / 0.83 GB, free: 63 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007358/1.438, allocations: 44 kB / 0.83 GB, free: 62.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02531/1.464, allocations: 22.7 MB / 0.8522 GB, free: 40.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/1.464, allocations: 8 kB / 0.8522 GB, free: 40.05 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03118/1.495, allocations: 14.63 MB / 0.8665 GB, free: 25.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001825/1.497, allocations: 476 kB / 0.8669 GB, free: 24.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001885/1.499, allocations: 39.98 kB / 0.867 GB, free: 24.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003861/1.502, allocations: 183.7 kB / 0.8671 GB, free: 24.64 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00121/1.504, allocations: 156.9 kB / 0.8673 GB, free: 24.49 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005633/1.504, allocations: 67.98 kB / 0.8673 GB, free: 24.42 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006426/1.511, allocations: 2.705 MB / 0.87 GB, free: 21.71 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.034e-06/1.511, allocations: 0 / 0.87 GB, free: 21.71 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01197/1.523, allocations: 1.359 MB / 0.8713 GB, free: 20.36 MB / 0.5606 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.001325/1.524, allocations: 182.1 kB / 0.8715 GB, free: 20.19 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01359/1.538, allocations: 8.361 MB / 0.8796 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/1.538, allocations: 0 / 0.8796 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00505/1.543, allocations: 3.207 MB / 0.8828 GB, free: 8.625 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005473/1.548, allocations: 0.504 MB / 0.8833 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02727/1.576, allocations: 11.98 MB / 0.895 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007357/1.583, allocations: 3.503 MB / 0.8984 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005903/1.589, allocations: 1.961 MB / 0.9003 GB, free: 6.559 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/1.59, allocations: 267.4 kB / 0.9006 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of SimCode: time 2.174e-06/1.59, allocations: 0 / 0.9006 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of Templates: time 0.4154/2.006, allocations: 66.66 MB / 0.9657 GB, free: 210.7 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches