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.001128/0.001128, allocations: 107.8 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001359/0.001359, allocations: 205.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2137/0.2137, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 67.89 kB / 482 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.385/0.3865, allocations: 62.44 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01346/0.4, allocations: 12.03 MB / 0.5434 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009212/0.4093, allocations: 4.312 MB / 0.5476 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002473/0.4118, allocations: 76.62 kB / 0.5477 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005358/0.4171, allocations: 2.733 MB / 0.5503 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00529/0.4225, allocations: 1.975 MB / 0.5523 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.4246, allocations: 0.9047 MB / 0.5532 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007774/0.4324, allocations: 5.677 MB / 0.5587 GB, free: 5.977 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005402/0.4378, allocations: 3.358 MB / 0.562 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004612/0.4424, allocations: 1.713 MB / 0.5636 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00486/0.4473, allocations: 2.512 MB / 0.5661 GB, free: 14.33 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001597/0.4489, allocations: 388 kB / 0.5665 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003613/0.4526, allocations: 1.393 MB / 0.5678 GB, free: 12.56 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003131/0.4557, allocations: 2.198 MB / 0.57 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004729/0.4605, allocations: 2.427 MB / 0.5723 GB, free: 7.914 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01036/0.4709, allocations: 7.847 MB / 0.58 GB, free: 44 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.4709, allocations: 0 / 0.58 GB, free: 44 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4709, allocations: 0 / 0.58 GB, free: 44 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003016/0.4712, allocations: 0 / 0.58 GB, free: 44 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.01525/0.4865, allocations: 5.494 MB / 0.5854 GB, free: 10.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.4865, allocations: 8.031 kB / 0.5854 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01197/0.4985, allocations: 2.471 MB / 0.5878 GB, free: 7.984 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008709/0.5073, allocations: 3.364 MB / 0.5911 GB, free: 4.562 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002736/0.5076, allocations: 246.4 kB / 0.5913 GB, free: 4.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00178/0.5094, allocations: 339.5 kB / 0.5916 GB, free: 3.988 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02317/0.5326, allocations: 10.87 MB / 0.6023 GB, free: 8.367 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002588/0.5329, allocations: 59.48 kB / 0.6023 GB, free: 8.309 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001315/0.5342, allocations: 151.8 kB / 0.6025 GB, free: 8.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003785/0.538, allocations: 1.998 MB / 0.6044 GB, free: 6.156 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02192/0.56, allocations: 9.448 MB / 0.6136 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05827/0.6183, allocations: 41.04 MB / 0.6537 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01128/0.6296, allocations: 4.271 MB / 0.6579 GB, free: 14 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002842/0.6325, allocations: 1.924 MB / 0.6598 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01239/0.6449, allocations: 7.598 MB / 0.6672 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.129e-05/0.645, allocations: 51.56 kB / 0.6672 GB, free: 4.031 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 5.199e-06/0.645, allocations: 0 / 0.6672 GB, free: 4.031 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1747/0.8197, allocations: 40.92 MB / 0.7072 GB, free: 11.02 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.8199, allocations: 209.9 kB / 0.7074 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008639/0.8285, allocations: 4.305 MB / 0.7116 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006241/0.8292, allocations: 57.7 kB / 0.7117 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003183/0.8324, allocations: 3.164 MB / 0.7147 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001399/0.8338, allocations: 0.8791 MB / 0.7156 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00345/0.8373, allocations: 1.364 MB / 0.7169 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.8374, allocations: 309 kB / 0.7172 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.308/1.145, allocations: 3.619 MB / 0.7208 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007455/1.153, allocations: 7.3 MB / 0.7279 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01224/1.165, allocations: 11.63 MB / 0.7392 GB, free: 150 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001657/1.165, allocations: 38.97 kB / 0.7393 GB, free: 150 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03747/1.203, allocations: 16.2 MB / 0.7551 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002121/1.203, allocations: 60 kB / 0.7552 GB, free: 140.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002251/1.203, allocations: 128 kB / 0.7553 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02275/1.226, allocations: 6.225 MB / 0.7614 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005124/1.231, allocations: 1.486 MB / 0.7628 GB, free: 132.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03092/1.262, allocations: 27.63 MB / 0.7898 GB, free: 105 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006444/1.269, allocations: 410.8 kB / 0.7902 GB, free: 104.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001817/1.271, allocations: 384 kB / 0.7906 GB, free: 104.3 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.005085/1.276, allocations: 2.218 MB / 0.7927 GB, free: 102.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/1.277, allocations: 400.8 kB / 0.7931 GB, free: 101.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02843/1.305, allocations: 11.29 MB / 0.8041 GB, free: 90.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.652e-05/1.305, allocations: 31.83 kB / 0.8042 GB, free: 90.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.301e-05/1.305, allocations: 12 kB / 0.8042 GB, free: 90.59 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.783e-05/1.305, allocations: 7.969 kB / 0.8042 GB, free: 90.58 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04342/1.349, allocations: 20.65 MB / 0.8243 GB, free: 69.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-05/1.349, allocations: 12.59 kB / 0.8244 GB, free: 69.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002022/1.351, allocations: 387.4 kB / 0.8247 GB, free: 69.17 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0201/1.371, allocations: 5.304 MB / 0.8299 GB, free: 63.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005387/1.372, allocations: 44 kB / 0.8299 GB, free: 63.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02531/1.397, allocations: 22.69 MB / 0.8521 GB, free: 40.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/1.397, allocations: 4 kB / 0.8521 GB, free: 40.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03022/1.427, allocations: 14.61 MB / 0.8664 GB, free: 26.21 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/1.428, allocations: 448 kB / 0.8668 GB, free: 25.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001417/1.43, allocations: 43.98 kB / 0.8668 GB, free: 25.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003242/1.433, allocations: 179.7 kB / 0.867 GB, free: 25.54 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009519/1.434, allocations: 160.8 kB / 0.8672 GB, free: 25.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004473/1.435, allocations: 67.73 kB / 0.8672 GB, free: 25.32 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004746/1.439, allocations: 2.705 MB / 0.8699 GB, free: 22.61 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/1.439, allocations: 0 / 0.8699 GB, free: 22.61 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007045/1.446, allocations: 1.358 MB / 0.8712 GB, free: 21.26 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.001055/1.448, allocations: 180.1 kB / 0.8714 GB, free: 21.08 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01217/1.46, allocations: 8.359 MB / 0.8795 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.484e-05/1.46, allocations: 1.188 kB / 0.8795 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005336/1.465, allocations: 3.207 MB / 0.8827 GB, free: 9.52 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005139/1.47, allocations: 0.4984 MB / 0.8832 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02208/1.492, allocations: 12.25 MB / 0.8951 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005651/1.498, allocations: 3.48 MB / 0.8985 GB, free: 9.176 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/1.5, allocations: 303.4 kB / 0.8988 GB, free: 8.879 MB / 0.5762 GB Notification: Performance of SimCode: time 8.81e-07/1.5, allocations: 4 kB / 0.8988 GB, free: 8.875 MB / 0.5762 GB Notification: Performance of Templates: time 0.4252/1.925, allocations: 110.1 MB / 1.006 GB, free: 173.5 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/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