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.001615/0.001616, allocations: 117.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001858/0.001858, allocations: 204.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2205/0.2205, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 79.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4042/0.4058, allocations: 62.43 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.0138/0.4196, allocations: 12.02 MB / 0.5427 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.4314, allocations: 4.308 MB / 0.5469 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004197/0.4356, allocations: 76.66 kB / 0.547 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005618/0.4413, allocations: 2.731 MB / 0.5497 GB, free: 14.51 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006484/0.4478, allocations: 1.984 MB / 0.5516 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002561/0.4504, allocations: 0.8969 MB / 0.5525 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009316/0.4598, allocations: 5.677 MB / 0.558 GB, free: 5.938 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004783/0.4646, allocations: 3.362 MB / 0.5613 GB, free: 2.531 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003293/0.4679, allocations: 1.717 MB / 0.563 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004141/0.4721, allocations: 2.508 MB / 0.5654 GB, free: 14.29 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00128/0.4734, allocations: 388 kB / 0.5658 GB, free: 13.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003185/0.4766, allocations: 1.389 MB / 0.5672 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002371/0.479, allocations: 2.17 MB / 0.5693 GB, free: 10.35 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003717/0.4827, allocations: 2.427 MB / 0.5716 GB, free: 7.906 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0109/0.4936, allocations: 7.873 MB / 0.5793 GB, free: 4 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.032e-05/0.4937, allocations: 0 / 0.5793 GB, free: 4 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4937, allocations: 0 / 0.5793 GB, free: 4 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002701/0.494, allocations: 4 kB / 0.5793 GB, free: 0 / 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.01777/0.5118, allocations: 5.63 MB / 0.5848 GB, free: 10.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.895e-05/0.5118, allocations: 8.031 kB / 0.5848 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01165/0.5235, allocations: 2.498 MB / 0.5873 GB, free: 7.773 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009695/0.5332, allocations: 3.377 MB / 0.5906 GB, free: 4.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002276/0.5335, allocations: 242.5 kB / 0.5908 GB, free: 4.102 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001471/0.535, allocations: 339.7 kB / 0.5911 GB, free: 3.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02091/0.5559, allocations: 10.88 MB / 0.6018 GB, free: 8.145 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001446/0.5561, allocations: 51.53 kB / 0.6018 GB, free: 8.094 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004434/0.5566, allocations: 159.8 kB / 0.602 GB, free: 7.938 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003147/0.5597, allocations: 2.002 MB / 0.6039 GB, free: 5.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02069/0.5804, allocations: 9.44 MB / 0.6131 GB, free: 12.47 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05831/0.6388, allocations: 41.11 MB / 0.6533 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01144/0.6503, allocations: 4.271 MB / 0.6575 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003714/0.6541, allocations: 1.928 MB / 0.6593 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01463/0.6687, allocations: 7.619 MB / 0.6668 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.036e-05/0.6689, allocations: 47.5 kB / 0.6668 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 5.911e-06/0.6689, allocations: 0 / 0.6668 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1665/0.8354, allocations: 41.17 MB / 0.707 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.8356, allocations: 205.9 kB / 0.7072 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008898/0.8445, allocations: 4.31 MB / 0.7114 GB, free: 5.914 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009337/0.8455, allocations: 57.7 kB / 0.7115 GB, free: 5.852 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003156/0.8487, allocations: 3.291 MB / 0.7147 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001424/0.8501, allocations: 0.9263 MB / 0.7156 GB, free: 1.598 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002577/0.8527, allocations: 1.361 MB / 0.7169 GB, free: 232 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.334/1.187, allocations: 305.9 kB / 0.7172 GB, free: 165 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0105/1.197, allocations: 3.628 MB / 0.7208 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01112/1.208, allocations: 7.294 MB / 0.7279 GB, free: 158 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01335/1.222, allocations: 11.63 MB / 0.7392 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001419/1.222, allocations: 38.66 kB / 0.7393 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03791/1.26, allocations: 16.22 MB / 0.7551 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.16e-05/1.26, allocations: 60.78 kB / 0.7552 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001307/1.26, allocations: 131.8 kB / 0.7553 GB, free: 139.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0222/1.282, allocations: 6.225 MB / 0.7614 GB, free: 133.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005347/1.288, allocations: 1.486 MB / 0.7628 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02936/1.317, allocations: 27.64 MB / 0.7898 GB, free: 104.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007057/1.324, allocations: 414 kB / 0.7902 GB, free: 103.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001264/1.326, 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.003856/1.33, allocations: 2.231 MB / 0.7928 GB, free: 101.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/1.331, allocations: 407.2 kB / 0.7932 GB, free: 101 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02657/1.357, allocations: 11.29 MB / 0.8042 GB, free: 89.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.441e-05/1.357, allocations: 24 kB / 0.8042 GB, free: 89.68 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.512e-05/1.357, allocations: 16 kB / 0.8042 GB, free: 89.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.148e-05/1.357, allocations: 7.969 kB / 0.8042 GB, free: 89.65 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04016/1.398, allocations: 20.66 MB / 0.8244 GB, free: 68.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.645e-05/1.398, allocations: 5.25 kB / 0.8244 GB, free: 68.64 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002074/1.4, allocations: 393.3 kB / 0.8248 GB, free: 68.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01918/1.419, allocations: 5.304 MB / 0.83 GB, free: 62.94 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007651/1.42, allocations: 48 kB / 0.83 GB, free: 62.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0252/1.445, allocations: 22.7 MB / 0.8522 GB, free: 40 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.445, allocations: 8 kB / 0.8522 GB, free: 39.99 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02883/1.474, allocations: 14.63 MB / 0.8665 GB, free: 25.28 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/1.475, allocations: 468.5 kB / 0.8669 GB, free: 24.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008598/1.476, allocations: 47.98 kB / 0.867 GB, free: 24.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002347/1.479, allocations: 179.7 kB / 0.8671 GB, free: 24.59 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006681/1.479, allocations: 156.9 kB / 0.8673 GB, free: 24.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002129/1.48, allocations: 71.98 kB / 0.8674 GB, free: 24.36 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003619/1.483, allocations: 2.697 MB / 0.87 GB, free: 21.66 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.305e-06/1.483, allocations: 0 / 0.87 GB, free: 21.66 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007439/1.491, allocations: 1.354 MB / 0.8713 GB, free: 20.31 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.000742/1.491, allocations: 179.2 kB / 0.8715 GB, free: 20.14 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01197/1.503, allocations: 8.36 MB / 0.8796 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/1.503, allocations: 1.188 kB / 0.8796 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004316/1.508, allocations: 3.206 MB / 0.8828 GB, free: 8.578 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/1.512, allocations: 0.5031 MB / 0.8833 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01984/1.531, allocations: 11.98 MB / 0.895 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004635/1.536, allocations: 3.508 MB / 0.8984 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004908/1.541, allocations: 1.956 MB / 0.9003 GB, free: 6.52 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/1.542, allocations: 259.4 kB / 0.9005 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of SimCode: time 1.213e-06/1.542, allocations: 0 / 0.9005 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of Templates: time 0.4395/1.982, allocations: 66.67 MB / 0.9657 GB, free: 210.6 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