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.0011/0.001099, allocations: 107.6 kB / 17.03 MB, free: 6.102 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.001058/0.001059, allocations: 194.9 kB / 17.96 MB, free: 5.195 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.402/1.402, allocations: 205.1 MB / 223.8 MB, free: 12.26 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.1994/0.1994, allocations: 43.53 MB / 314.7 MB, free: 472 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.001506/0.001506, allocations: 66.77 kB / 384.2 MB, free: 56.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1049, allocations: 57.79 MB / 442 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01135/0.1163, allocations: 12.1 MB / 454.1 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009012/0.1254, allocations: 4.315 MB / 458.4 MB, free: 5.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001816/0.1273, allocations: 75.75 kB / 458.4 MB, free: 5.582 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004846/0.1321, allocations: 2.745 MB / 461.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004848/0.137, allocations: 2.008 MB / 463.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00192/0.1389, allocations: 0.9202 MB / 464.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007692/0.1467, allocations: 5.239 MB / 469.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003759/0.1504, allocations: 3.378 MB / 472.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002537/0.153, allocations: 1.729 MB / 474.5 MB, free: 5.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002991/0.156, allocations: 2.535 MB / 477 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008588/0.1569, allocations: 384 kB / 477.4 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002497/0.1594, allocations: 1.4 MB / 478.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002165/0.1616, allocations: 2.198 MB / 481 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002776/0.1644, allocations: 2.451 MB / 483.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008682/0.1731, allocations: 7.907 MB / 491.3 MB, free: 4.559 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.1731, allocations: 0 / 491.3 MB, free: 4.559 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1731, allocations: 3.938 kB / 491.3 MB, free: 4.555 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002542/0.1734, allocations: 0 / 491.3 MB, free: 4.555 MB / 366.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.01375/0.1871, allocations: 5.521 MB / 496.9 MB, free: 14.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/0.1872, allocations: 11.89 kB / 496.9 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01084/0.1981, allocations: 2.471 MB / 499.3 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009001/0.2071, allocations: 3.54 MB / 0.4911 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002267/0.2074, allocations: 234.5 kB / 0.4913 GB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001524/0.2089, allocations: 339.6 kB / 0.4916 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02045/0.2294, allocations: 10.87 MB / 0.5023 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001703/0.2296, allocations: 59.42 kB / 0.5023 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004944/0.2301, allocations: 151.9 kB / 0.5025 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002985/0.2331, allocations: 2.002 MB / 0.5044 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01892/0.252, allocations: 9.444 MB / 0.5136 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.301/0.5531, allocations: 41.05 MB / 0.5537 GB, free: 58.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01059/0.5638, allocations: 4.263 MB / 0.5579 GB, free: 57.45 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002849/0.5666, allocations: 1.915 MB / 0.5598 GB, free: 56.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01193/0.5786, allocations: 7.625 MB / 0.5672 GB, free: 52.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/0.5787, allocations: 57.44 kB / 0.5673 GB, free: 52.24 MB / 414.1 MB Notification: Performance of pre-optimization done (n=180): time 6.131e-06/0.5787, allocations: 1.594 kB / 0.5673 GB, free: 52.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=236): time 0.1443/0.7231, allocations: 40.96 MB / 0.6073 GB, free: 17.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.101e-05/0.7232, allocations: 205.9 kB / 0.6075 GB, free: 17.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004937/0.7281, allocations: 4.337 MB / 0.6117 GB, free: 12.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005256/0.7287, allocations: 61.7 kB / 0.6117 GB, free: 12.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.73, allocations: 3.171 MB / 0.6148 GB, free: 9.746 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009371/0.7309, allocations: 0.873 MB / 0.6157 GB, free: 8.879 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001618/0.7326, allocations: 1.359 MB / 0.617 GB, free: 7.512 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 3.703e-05/0.7326, allocations: 305.1 kB / 0.6173 GB, free: 7.211 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003849/0.7365, allocations: 3.624 MB / 0.6209 GB, free: 3.582 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005937/0.7424, allocations: 7.305 MB / 0.628 GB, free: 10.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01266/0.7551, allocations: 11.62 MB / 0.6393 GB, free: 13.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.37e-05/0.7552, allocations: 36 kB / 0.6394 GB, free: 13.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03595/0.7912, allocations: 16.21 MB / 0.6552 GB, free: 12.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.691e-05/0.7913, allocations: 60 kB / 0.6553 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/0.7914, allocations: 128.5 kB / 0.6554 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02157/0.813, allocations: 6.229 MB / 0.6615 GB, free: 6.414 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005062/0.8181, allocations: 1.497 MB / 0.6629 GB, free: 4.914 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03635/0.8544, allocations: 27.62 MB / 0.6899 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006663/0.8612, allocations: 407.3 kB / 0.6903 GB, free: 8.613 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001266/0.8625, allocations: 391.4 kB / 0.6907 GB, free: 8.234 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.004385/0.8669, allocations: 2.233 MB / 0.6928 GB, free: 5.992 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009887/0.8678, allocations: 390.9 kB / 0.6932 GB, free: 5.605 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02937/0.8972, allocations: 11.29 MB / 0.7042 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.936e-05/0.8973, allocations: 28 kB / 0.7043 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.228e-05/0.8974, allocations: 12 kB / 0.7043 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.756e-05/0.8974, allocations: 11.95 kB / 0.7043 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04495/0.9424, allocations: 20.66 MB / 0.7245 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.737e-05/0.9425, allocations: 4 kB / 0.7245 GB, free: 5.113 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002349/0.9448, allocations: 388 kB / 0.7248 GB, free: 4.734 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2329/1.178, allocations: 5.308 MB / 0.73 GB, free: 180.1 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006854/1.178, allocations: 44.25 kB / 0.7301 GB, free: 180.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0323/1.211, allocations: 22.69 MB / 0.7522 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.206e-05/1.211, allocations: 7.25 kB / 0.7522 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02966/1.241, allocations: 14.6 MB / 0.7665 GB, free: 167.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003264/1.244, allocations: 0.9854 MB / 0.7675 GB, free: 166.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001396/1.245, allocations: 40.06 kB / 0.7675 GB, free: 166.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003233/1.249, allocations: 182.7 kB / 0.7677 GB, free: 166.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008944/1.249, allocations: 159.3 kB / 0.7678 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003571/1.25, allocations: 58.8 kB / 0.7679 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004843/1.255, allocations: 2.732 MB / 0.7705 GB, free: 164.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/1.255, allocations: 0 / 0.7705 GB, free: 164.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006698/1.261, allocations: 1.371 MB / 0.7719 GB, free: 163.4 MB / 0.5137 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.0005465/1.262, allocations: 183.6 kB / 0.7721 GB, free: 163.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01023/1.272, allocations: 8.343 MB / 0.7802 GB, free: 155 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/1.272, allocations: 4 kB / 0.7802 GB, free: 155 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003856/1.276, allocations: 3.211 MB / 0.7833 GB, free: 151.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0033/1.279, allocations: 0.5158 MB / 0.7838 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01796/1.297, allocations: 11.85 MB / 0.7954 GB, free: 139.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00321/1.301, allocations: 3.52 MB / 0.7989 GB, free: 136 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0043/1.305, allocations: 1.959 MB / 0.8008 GB, free: 134.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009211/1.306, allocations: 259.4 kB / 0.801 GB, free: 133.9 MB / 0.5137 GB Notification: Performance of SimCode: time 8.52e-07/1.306, allocations: 4 kB / 0.801 GB, free: 133.9 MB / 0.5137 GB Notification: Performance of Templates: time 0.08901/1.395, allocations: 64.76 MB / 0.8643 GB, free: 69.24 MB / 0.5137 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 -s gbode -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