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.0011/0.0011, allocations: 121.7 kB / 17.79 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.001114/0.001114, allocations: 199.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246.9 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.2145/0.2145, allocations: 46.09 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 71.89 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.379, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01353/0.3925, allocations: 12.03 MB / 0.5427 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01379/0.4064, allocations: 4.304 MB / 0.5469 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005211/0.4117, allocations: 73.25 kB / 0.547 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006435/0.4182, allocations: 2.742 MB / 0.5497 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00692/0.4252, allocations: 1.969 MB / 0.5516 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002284/0.4275, allocations: 0.9047 MB / 0.5525 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008913/0.4364, allocations: 5.678 MB / 0.558 GB, free: 5.977 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004046/0.4405, allocations: 3.358 MB / 0.5613 GB, free: 2.57 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002988/0.4435, allocations: 1.709 MB / 0.563 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003214/0.4467, allocations: 2.52 MB / 0.5654 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007618/0.4475, allocations: 384 kB / 0.5658 GB, free: 13.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002647/0.4501, allocations: 1.393 MB / 0.5672 GB, free: 12.56 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002067/0.4522, allocations: 2.202 MB / 0.5693 GB, free: 10.35 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002702/0.4549, allocations: 2.424 MB / 0.5717 GB, free: 7.914 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008841/0.4638, allocations: 7.855 MB / 0.5793 GB, free: 36 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.4639, allocations: 0 / 0.5793 GB, free: 36 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4639, allocations: 0 / 0.5793 GB, free: 36 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001831/0.464, allocations: 0 / 0.5793 GB, free: 36 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.0125/0.4766, allocations: 5.49 MB / 0.5847 GB, free: 10.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.4766, allocations: 8.031 kB / 0.5847 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01119/0.4878, allocations: 2.475 MB / 0.5871 GB, free: 7.977 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007972/0.4958, allocations: 3.36 MB / 0.5904 GB, free: 4.559 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.496, allocations: 246.5 kB / 0.5907 GB, free: 4.316 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009012/0.497, allocations: 339.6 kB / 0.591 GB, free: 3.984 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01994/0.5169, allocations: 10.88 MB / 0.6016 GB, free: 8.359 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001409/0.5171, allocations: 51.5 kB / 0.6016 GB, free: 8.309 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004304/0.5175, allocations: 151.9 kB / 0.6018 GB, free: 8.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00316/0.5207, allocations: 2.002 MB / 0.6037 GB, free: 6.152 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01947/0.5402, allocations: 9.448 MB / 0.613 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06123/0.6015, allocations: 41.04 MB / 0.653 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/0.613, allocations: 4.274 MB / 0.6572 GB, free: 14 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003047/0.6161, allocations: 1.93 MB / 0.6591 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01354/0.6297, allocations: 7.594 MB / 0.6665 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.646e-05/0.6298, allocations: 55.44 kB / 0.6666 GB, free: 4.027 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 5.831e-06/0.6298, allocations: 0 / 0.6666 GB, free: 4.027 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1651/0.7949, allocations: 40.92 MB / 0.7065 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.795, allocations: 205.9 kB / 0.7067 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005954/0.801, allocations: 4.305 MB / 0.7109 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005823/0.8016, allocations: 61.7 kB / 0.711 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002079/0.8037, allocations: 3.16 MB / 0.7141 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001069/0.8047, allocations: 0.883 MB / 0.7149 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001986/0.8067, allocations: 1.36 MB / 0.7163 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.517e-05/0.8068, allocations: 313 kB / 0.7166 GB, free: 0.5938 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2968/1.104, allocations: 3.624 MB / 0.7201 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008012/1.112, allocations: 7.289 MB / 0.7272 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0129/1.125, allocations: 11.62 MB / 0.7386 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001596/1.125, allocations: 38.75 kB / 0.7386 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03815/1.163, allocations: 16.21 MB / 0.7544 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002487/1.163, allocations: 60 kB / 0.7545 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002675/1.164, allocations: 128 kB / 0.7546 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02343/1.187, allocations: 6.229 MB / 0.7607 GB, free: 135.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00509/1.192, allocations: 1.489 MB / 0.7622 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03196/1.224, allocations: 27.62 MB / 0.7891 GB, free: 106.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00672/1.231, allocations: 401.4 kB / 0.7895 GB, free: 105.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001497/1.232, allocations: 391.6 kB / 0.7899 GB, free: 105.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.005004/1.238, allocations: 2.223 MB / 0.7921 GB, free: 103.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001244/1.239, allocations: 390.2 kB / 0.7924 GB, free: 103 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02881/1.268, allocations: 11.3 MB / 0.8035 GB, free: 91.72 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.602e-05/1.268, allocations: 24 kB / 0.8035 GB, free: 91.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.478e-05/1.268, allocations: 15.94 kB / 0.8035 GB, free: 91.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.838e-05/1.268, allocations: 11.95 kB / 0.8035 GB, free: 91.67 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04803/1.316, allocations: 20.65 MB / 0.8237 GB, free: 70.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.817e-05/1.316, allocations: 8 kB / 0.8237 GB, free: 70.65 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002147/1.318, allocations: 392 kB / 0.8241 GB, free: 70.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02074/1.339, allocations: 5.308 MB / 0.8292 GB, free: 64.95 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006662/1.34, allocations: 40 kB / 0.8293 GB, free: 64.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02682/1.366, allocations: 22.69 MB / 0.8514 GB, free: 42.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/1.366, allocations: 11.94 kB / 0.8515 GB, free: 42.01 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03096/1.397, allocations: 14.61 MB / 0.8657 GB, free: 27.31 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001733/1.399, allocations: 446.6 kB / 0.8661 GB, free: 26.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001435/1.401, allocations: 43.98 kB / 0.8662 GB, free: 26.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003467/1.404, allocations: 187.1 kB / 0.8664 GB, free: 26.63 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001021/1.405, allocations: 152.8 kB / 0.8665 GB, free: 26.49 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004282/1.406, allocations: 69.19 kB / 0.8666 GB, free: 26.42 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00508/1.411, allocations: 2.701 MB / 0.8692 GB, free: 23.71 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.1e-07/1.411, allocations: 0 / 0.8692 GB, free: 23.71 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008619/1.419, allocations: 1.353 MB / 0.8705 GB, free: 22.37 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.0009854/1.42, allocations: 189.2 kB / 0.8707 GB, free: 22.18 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01359/1.434, allocations: 8.347 MB / 0.8789 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.022e-05/1.434, allocations: 0 / 0.8789 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004844/1.439, allocations: 3.218 MB / 0.882 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006025/1.445, allocations: 0.51 MB / 0.8825 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02388/1.469, allocations: 11.81 MB / 0.894 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006625/1.476, allocations: 3.499 MB / 0.8975 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004901/1.481, allocations: 1.96 MB / 0.8994 GB, free: 8.73 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/1.482, allocations: 267.4 kB / 0.8996 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of SimCode: time 1.192e-06/1.482, allocations: 4 kB / 0.8996 GB, free: 8.465 MB / 0.5762 GB Notification: Performance of Templates: time 0.427/1.909, allocations: 67.39 MB / 0.9654 GB, free: 211.4 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