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.001146/0.001146, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001225/0.001225, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2288/0.2288, allocations: 46.1 MB / 344.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 67.89 kB / 419 MB, free: 18.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.127, allocations: 62.45 MB / 481.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01277/0.1399, allocations: 12.02 MB / 493.5 MB, free: 8.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009583/0.1495, allocations: 4.306 MB / 497.8 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001972/0.1515, allocations: 79.75 kB / 497.9 MB, free: 4.035 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004931/0.1565, allocations: 2.721 MB / 0.4888 GB, free: 1.305 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005481/0.162, allocations: 1.992 MB / 0.4908 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002017/0.164, allocations: 0.9008 MB / 0.4917 GB, free: 14.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007787/0.1718, allocations: 5.666 MB / 0.4972 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00416/0.176, allocations: 3.354 MB / 0.5005 GB, free: 5.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003064/0.1791, allocations: 1.713 MB / 0.5021 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003801/0.1829, allocations: 2.512 MB / 0.5046 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001031/0.184, allocations: 384 kB / 0.505 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2807/0.4647, allocations: 1.391 MB / 0.5063 GB, free: 19.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003635/0.4684, allocations: 2.159 MB / 0.5084 GB, free: 19.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004388/0.4728, allocations: 2.427 MB / 0.5108 GB, free: 18.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01401/0.4868, allocations: 7.85 MB / 0.5185 GB, free: 17.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.4869, allocations: 0 / 0.5185 GB, free: 17.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.4869, allocations: 1.406 kB / 0.5185 GB, free: 17.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002655/0.4872, allocations: 2.938 kB / 0.5185 GB, free: 17.41 MB / 382.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.01612/0.5033, allocations: 5.478 MB / 0.5238 GB, free: 14.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.5034, allocations: 9.25 kB / 0.5238 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01086/0.5142, allocations: 2.475 MB / 0.5263 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008712/0.523, allocations: 3.371 MB / 0.5295 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/0.5232, allocations: 241.3 kB / 0.5298 GB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/0.5242, allocations: 334 kB / 0.5301 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01819/0.5424, allocations: 10.88 MB / 0.5407 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000133/0.5426, allocations: 51.44 kB / 0.5408 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004278/0.543, allocations: 154.6 kB / 0.5409 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002556/0.5456, allocations: 1.999 MB / 0.5429 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01821/0.5638, allocations: 9.446 MB / 0.5521 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0552/0.619, allocations: 41.04 MB / 0.5922 GB, free: 3.359 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/0.6299, allocations: 4.259 MB / 0.5963 GB, free: 14.97 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002563/0.6325, allocations: 1.932 MB / 0.5982 GB, free: 13.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01186/0.6444, allocations: 7.62 MB / 0.6057 GB, free: 5.082 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.579e-05/0.6445, allocations: 62.33 kB / 0.6057 GB, free: 5.016 MB / 446.1 MB Notification: Performance of pre-optimization done (n=180): time 4.89e-06/0.6445, allocations: 0 / 0.6057 GB, free: 5.016 MB / 446.1 MB Notification: Performance of matching and sorting (n=236): time 0.1486/0.7931, allocations: 40.9 MB / 0.6457 GB, free: 12.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.7932, allocations: 201.9 kB / 0.6459 GB, free: 11.96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006236/0.7995, allocations: 4.301 MB / 0.6501 GB, free: 7.633 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006253/0.8001, allocations: 63.66 kB / 0.6501 GB, free: 7.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002444/0.8026, allocations: 3.168 MB / 0.6532 GB, free: 4.406 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001235/0.8038, allocations: 0.883 MB / 0.6541 GB, free: 3.531 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002157/0.806, allocations: 1.356 MB / 0.6554 GB, free: 2.164 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.8061, allocations: 301.1 kB / 0.6557 GB, free: 1.867 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005673/0.8118, allocations: 3.628 MB / 0.6592 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009906/0.8217, allocations: 7.295 MB / 0.6663 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01594/0.8378, allocations: 11.63 MB / 0.6777 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001175/0.8379, allocations: 39.94 kB / 0.6777 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03876/0.8767, allocations: 16.2 MB / 0.6936 GB, free: 8.16 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.388e-05/0.8768, allocations: 60 kB / 0.6936 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001386/0.877, allocations: 128.9 kB / 0.6937 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02238/0.8994, allocations: 6.224 MB / 0.6998 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005506/0.9049, allocations: 1.493 MB / 0.7013 GB, free: 252 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2668/1.172, allocations: 27.62 MB / 0.7283 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006454/1.178, allocations: 412.7 kB / 0.7286 GB, free: 166.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001557/1.18, allocations: 387.5 kB / 0.729 GB, free: 166.4 MB / 0.5294 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.005172/1.185, allocations: 2.212 MB / 0.7312 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001157/1.186, allocations: 394.4 kB / 0.7316 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02531/1.211, allocations: 11.29 MB / 0.7426 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.957e-05/1.212, allocations: 28 kB / 0.7426 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.632e-05/1.212, allocations: 8 kB / 0.7426 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.867e-05/1.212, allocations: 19.8 kB / 0.7426 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03975/1.251, allocations: 20.64 MB / 0.7628 GB, free: 139.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.27e-05/1.252, allocations: 8 kB / 0.7628 GB, free: 139.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002042/1.254, allocations: 387.2 kB / 0.7632 GB, free: 138.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01788/1.271, allocations: 5.313 MB / 0.7684 GB, free: 133.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006016/1.272, allocations: 40 kB / 0.7684 GB, free: 133.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02399/1.296, allocations: 22.71 MB / 0.7906 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/1.296, allocations: 7.938 kB / 0.7906 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02698/1.323, allocations: 14.6 MB / 0.8048 GB, free: 96.28 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/1.325, allocations: 451.6 kB / 0.8053 GB, free: 95.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000862/1.326, allocations: 45.53 kB / 0.8053 GB, free: 95.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002256/1.328, allocations: 179.1 kB / 0.8055 GB, free: 95.61 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006382/1.329, allocations: 154.3 kB / 0.8056 GB, free: 95.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002189/1.329, allocations: 67.31 kB / 0.8057 GB, free: 95.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003827/1.333, allocations: 2.701 MB / 0.8083 GB, free: 92.69 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.91e-07/1.333, allocations: 0 / 0.8083 GB, free: 92.69 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006697/1.339, allocations: 1.359 MB / 0.8097 GB, free: 91.34 MB / 0.5294 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.0006228/1.34, allocations: 184.1 kB / 0.8098 GB, free: 91.16 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01166/1.352, allocations: 8.342 MB / 0.818 GB, free: 82.84 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.778e-05/1.352, allocations: 4 kB / 0.818 GB, free: 82.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004379/1.356, allocations: 3.213 MB / 0.8211 GB, free: 79.62 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00386/1.36, allocations: 0.5073 MB / 0.8216 GB, free: 79.13 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01858/1.379, allocations: 11.82 MB / 0.8331 GB, free: 67.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003218/1.382, allocations: 3.503 MB / 0.8366 GB, free: 63.71 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003873/1.386, allocations: 1.96 MB / 0.8385 GB, free: 61.75 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000941/1.387, allocations: 263.4 kB / 0.8387 GB, free: 61.49 MB / 0.5294 GB Notification: Performance of SimCode: time 6.61e-07/1.387, allocations: 0 / 0.8387 GB, free: 61.49 MB / 0.5294 GB Notification: Performance of Templates: time 0.3394/1.726, allocations: 64.53 MB / 0.9018 GB, free: 188.8 MB / 0.545 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 -s cvode -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