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.001931/0.001931, allocations: 113.9 kB / 17.09 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002117/0.002117, allocations: 198.9 kB / 18.03 MB, free: 5.035 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.499/1.499, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2079/0.2079, allocations: 43.52 MB / 314.8 MB, free: 448 kB / 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.001464/0.001464, allocations: 61.47 kB / 442.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1266, allocations: 57.79 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01352/0.1402, allocations: 12.11 MB / 0.5004 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00924/0.1495, allocations: 4.311 MB / 0.5046 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001994/0.1515, allocations: 71.81 kB / 0.5046 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005001/0.1566, allocations: 2.745 MB / 0.5073 GB, free: 8.484 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00569/0.1623, allocations: 2.07 MB / 0.5093 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002132/0.1644, allocations: 0.9125 MB / 0.5102 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008571/0.173, allocations: 5.256 MB / 0.5154 GB, free: 228 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004832/0.1779, allocations: 3.374 MB / 0.5187 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004726/0.1827, allocations: 1.736 MB / 0.5204 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004803/0.1875, allocations: 2.532 MB / 0.5228 GB, free: 8.516 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001183/0.1887, allocations: 384 kB / 0.5232 GB, free: 8.141 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003375/0.1921, allocations: 1.404 MB / 0.5246 GB, free: 6.734 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002591/0.1947, allocations: 2.221 MB / 0.5267 GB, free: 4.508 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003866/0.1986, allocations: 2.455 MB / 0.5291 GB, free: 2.039 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.292/0.4906, allocations: 7.936 MB / 0.5369 GB, free: 16.51 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.064e-05/0.4907, allocations: 0.7188 kB / 0.5369 GB, free: 16.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4907, allocations: 0 / 0.5369 GB, free: 16.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003005/0.491, allocations: 1.031 kB / 0.5369 GB, free: 16.51 MB / 414.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.0247/0.5157, allocations: 5.674 MB / 0.5424 GB, free: 14.28 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.5158, allocations: 12.83 kB / 0.5424 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02068/0.5365, allocations: 2.504 MB / 0.5449 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01577/0.5523, allocations: 3.54 MB / 0.5483 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009851/0.5533, allocations: 241.6 kB / 0.5486 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003163/0.5565, allocations: 340.5 kB / 0.5489 GB, free: 13.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03599/0.5926, allocations: 10.87 MB / 0.5595 GB, free: 9.574 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004037/0.593, allocations: 59.34 kB / 0.5596 GB, free: 9.562 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001827/0.5949, allocations: 151.9 kB / 0.5597 GB, free: 9.496 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004543/0.5994, allocations: 2.001 MB / 0.5617 GB, free: 8.977 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02965/0.6291, allocations: 9.445 MB / 0.5709 GB, free: 4.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08485/0.714, allocations: 41.13 MB / 0.6111 GB, free: 11.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0119/0.7259, allocations: 4.268 MB / 0.6152 GB, free: 7.184 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003073/0.729, allocations: 1.923 MB / 0.6171 GB, free: 5.258 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01235/0.7414, allocations: 7.633 MB / 0.6246 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.328e-05/0.7415, allocations: 58.59 kB / 0.6246 GB, free: 13.26 MB / 478.1 MB Notification: Performance of pre-optimization done (n=180): time 5.39e-06/0.7415, allocations: 0 / 0.6246 GB, free: 13.26 MB / 478.1 MB Notification: Performance of matching and sorting (n=236): time 0.1595/0.9011, allocations: 41.21 MB / 0.6649 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.9012, allocations: 209.5 kB / 0.6651 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01022/0.9114, allocations: 4.344 MB / 0.6693 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007517/0.9122, allocations: 61.7 kB / 0.6694 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002967/0.9152, allocations: 3.295 MB / 0.6726 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001577/0.9168, allocations: 0.9234 MB / 0.6735 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004305/0.9211, allocations: 1.364 MB / 0.6748 GB, free: 9.941 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.9213, allocations: 307.7 kB / 0.6751 GB, free: 9.641 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005957/0.9272, allocations: 3.624 MB / 0.6787 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008755/0.936, allocations: 7.298 MB / 0.6858 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01529/0.9513, allocations: 11.62 MB / 0.6971 GB, free: 80 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000191/0.9515, allocations: 36 kB / 0.6972 GB, free: 44 kB / 0.5294 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04151/0.9931, allocations: 16.23 MB / 0.713 GB, free: 160 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001672/0.9933, allocations: 60 kB / 0.7131 GB, free: 100 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002724/0.9935, allocations: 124 kB / 0.7132 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02437/1.018, allocations: 6.223 MB / 0.7193 GB, free: 9.742 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006566/1.025, allocations: 1.489 MB / 0.7207 GB, free: 8.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04482/1.069, allocations: 27.65 MB / 0.7477 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006936/1.076, allocations: 411.5 kB / 0.7481 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002622/1.079, allocations: 389.5 kB / 0.7485 GB, free: 11.55 MB / 0.5919 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.009102/1.088, allocations: 2.22 MB / 0.7506 GB, free: 9.312 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001604/1.09, allocations: 421.3 kB / 0.751 GB, free: 8.898 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3205/1.41, allocations: 11.29 MB / 0.7621 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-05/1.41, allocations: 12.31 kB / 0.7621 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/1.41, allocations: 2.156 kB / 0.7621 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003487/1.414, allocations: 1.057 MB / 0.7631 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00121/1.415, allocations: 35.31 kB / 0.7632 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002374/1.418, allocations: 178.3 kB / 0.7633 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006559/1.418, allocations: 178.1 kB / 0.7635 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01942/1.438, allocations: 8.776 MB / 0.7721 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01325/1.451, allocations: 9.7 MB / 0.7815 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002987/1.454, allocations: 2.711 MB / 0.7842 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004185/1.458, allocations: 2.726 MB / 0.7868 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of Backend: time 7.01e-07/1.458, allocations: 0 / 0.7868 GB, free: 203.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01232/1.471, allocations: 6.165 MB / 0.7929 GB, free: 200.9 MB / 0.5919 GB Notification: Performance of SimCode: time 0.01649/1.487, allocations: 10.36 MB / 0.803 GB, free: 193.7 MB / 0.5919 GB Notification: Performance of Templates: time 0.1087/1.596, allocations: 74.72 MB / 0.876 GB, free: 119.1 MB / 0.5919 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches