Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 102.9 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001665/0.001666, allocations: 186 kB / 16.92 MB, free: 6.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.885/1.885, allocations: 205.4 MB / 223.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4126/0.4126, allocations: 43.58 MB / 315 MB, free: 9.039 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005834/0.0005831, allocations: 12 kB / 384.6 MB, free: 7.906 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1471, allocations: 58.88 MB / 443.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3279/0.475, allocations: 45.8 MB / 489.2 MB, free: 21.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02413/0.4992, allocations: 10.08 MB / 499.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01207/0.5113, allocations: 203.6 kB / 499.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00264/0.514, allocations: 448.9 kB / 500 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006912/0.5209, allocations: 1.896 MB / 0.4901 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002354/0.5233, allocations: 0.8383 MB / 0.4909 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0144/0.5377, allocations: 7.439 MB / 0.4982 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009519/0.5473, allocations: 4.691 MB / 0.5028 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004159/0.5515, allocations: 1.327 MB / 0.5041 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005092/0.5566, allocations: 2.423 MB / 0.5064 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001031/0.5577, allocations: 176.9 kB / 0.5066 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00346/0.5612, allocations: 1.276 MB / 0.5078 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003266/0.5644, allocations: 1.981 MB / 0.5098 GB, free: 7.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004152/0.5686, allocations: 2.21 MB / 0.5119 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009608/0.5782, allocations: 7.374 MB / 0.5191 GB, free: 1.355 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.5783, allocations: 0 / 0.5191 GB, free: 1.355 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5783, allocations: 6.812 kB / 0.5191 GB, free: 1.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002891/0.5786, allocations: 0 / 0.5191 GB, free: 1.352 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.01321/0.5918, allocations: 4.604 MB / 0.5236 GB, free: 13.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/0.5919, allocations: 8.031 kB / 0.5236 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01297/0.6048, allocations: 2.526 MB / 0.5261 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009617/0.6145, allocations: 3.473 MB / 0.5295 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.6148, allocations: 238.7 kB / 0.5297 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001576/0.6164, allocations: 331.6 kB / 0.53 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02362/0.64, allocations: 10.91 MB / 0.5407 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001941/0.6402, allocations: 47.59 kB / 0.5407 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004895/0.6407, allocations: 155.8 kB / 0.5409 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003326/0.6441, allocations: 2.002 MB / 0.5428 GB, free: 9.281 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02168/0.6657, allocations: 9.467 MB / 0.5521 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05786/0.7237, allocations: 41.26 MB / 0.5924 GB, free: 5.336 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01131/0.735, allocations: 4.273 MB / 0.5966 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003122/0.7382, allocations: 1.931 MB / 0.5984 GB, free: 14.98 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01599/0.7542, allocations: 7.61 MB / 0.6059 GB, free: 7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.192e-05/0.7543, allocations: 55.5 kB / 0.6059 GB, free: 6.934 MB / 478.1 MB Notification: Performance of pre-optimization done (n=180): time 5.881e-06/0.7543, allocations: 4 kB / 0.6059 GB, free: 6.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=236): time 0.4777/1.232, allocations: 41.46 MB / 0.6464 GB, free: 138.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.757e-05/1.232, allocations: 208.6 kB / 0.6466 GB, free: 138.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006145/1.238, allocations: 4.335 MB / 0.6509 GB, free: 137 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006434/1.239, allocations: 60.23 kB / 0.6509 GB, free: 136.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002038/1.241, allocations: 3.173 MB / 0.654 GB, free: 134.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/1.242, allocations: 0.8815 MB / 0.6549 GB, free: 133.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009025/1.243, allocations: 0.5633 MB / 0.6554 GB, free: 133.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.273e-05/1.243, allocations: 305.8 kB / 0.6557 GB, free: 133.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006169/1.249, allocations: 3.627 MB / 0.6593 GB, free: 132 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007845/1.257, allocations: 7.297 MB / 0.6664 GB, free: 125.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01541/1.273, allocations: 11.62 MB / 0.6777 GB, free: 117.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001787/1.273, allocations: 36.16 kB / 0.6778 GB, free: 117.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04331/1.316, allocations: 16.23 MB / 0.6936 GB, free: 111.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/1.316, allocations: 57.72 kB / 0.6937 GB, free: 111.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001502/1.316, allocations: 129.6 kB / 0.6938 GB, free: 111.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02288/1.339, allocations: 6.252 MB / 0.6999 GB, free: 107.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005628/1.345, allocations: 1.489 MB / 0.7014 GB, free: 105.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02834/1.373, allocations: 26.17 MB / 0.7269 GB, free: 79.49 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0061/1.38, allocations: 411.4 kB / 0.7273 GB, free: 79.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001091/1.381, allocations: 388 kB / 0.7277 GB, free: 78.71 MB / 494.1 MB 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.003914/1.385, allocations: 2.22 MB / 0.7298 GB, free: 76.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008392/1.385, allocations: 390.9 kB / 0.7302 GB, free: 76.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02701/1.412, allocations: 11.32 MB / 0.7413 GB, free: 64.74 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-05/1.413, allocations: 24 kB / 0.7413 GB, free: 64.71 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-05/1.413, allocations: 15.98 kB / 0.7413 GB, free: 64.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.034e-05/1.413, allocations: 8.625 kB / 0.7413 GB, free: 64.69 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04024/1.453, allocations: 20.78 MB / 0.7616 GB, free: 43.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.979e-05/1.453, allocations: 4 kB / 0.7616 GB, free: 43.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/1.455, allocations: 391.9 kB / 0.762 GB, free: 43.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01946/1.474, allocations: 5.336 MB / 0.7672 GB, free: 37.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004749/1.475, allocations: 40 kB / 0.7672 GB, free: 37.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.023/1.498, allocations: 21.24 MB / 0.788 GB, free: 16.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/1.498, allocations: 12.59 kB / 0.788 GB, free: 16.21 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02952/1.527, allocations: 14.63 MB / 0.8023 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002683/1.53, allocations: 0.9839 MB / 0.8032 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006115/1.531, allocations: 47.98 kB / 0.8033 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002414/1.533, allocations: 179.7 kB / 0.8035 GB, free: 272 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007111/1.534, allocations: 149.1 kB / 0.8036 GB, free: 124 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002011/1.534, allocations: 71.98 kB / 0.8037 GB, free: 52 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006107/1.54, allocations: 2.722 MB / 0.8063 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.72e-07/1.54, allocations: 0 / 0.8063 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.009014/1.549, allocations: 1.375 MB / 0.8077 GB, free: 11.96 MB / 0.4981 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.0006915/1.55, allocations: 188.9 kB / 0.8078 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.2713/1.821, allocations: 8.315 MB / 0.816 GB, free: 146.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.192e-05/1.821, allocations: 2.188 kB / 0.816 GB, free: 146.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.005435/1.827, allocations: 3.216 MB / 0.8191 GB, free: 146.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00668/1.834, allocations: 485 kB / 0.8196 GB, free: 146.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.024/1.858, allocations: 14.15 MB / 0.8334 GB, free: 140.2 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00441/1.862, allocations: 3.514 MB / 0.8368 GB, free: 138.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006219/1.868, allocations: 1.958 MB / 0.8387 GB, free: 138.6 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001595/1.87, allocations: 267.5 kB / 0.839 GB, free: 138.6 MB / 0.4981 GB Notification: Performance of SimCode: time 2.134e-06/1.87, allocations: 0 / 0.839 GB, free: 138.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.1275/1.997, allocations: 66.37 MB / 0.9038 GB, free: 97.54 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches