Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_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.001038/0.001038, allocations: 113.4 kB / 17.78 MB, free: 5.27 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.001066/0.001066, allocations: 184.1 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2072/0.2072, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 67.89 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3565, allocations: 60.83 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01224/0.3687, allocations: 12.05 MB / 0.5307 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01224/0.381, allocations: 4.298 MB / 0.5349 GB, free: 7.695 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002841/0.3839, allocations: 76.72 kB / 0.5349 GB, free: 7.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005498/0.3895, allocations: 2.735 MB / 0.5376 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006616/0.3962, allocations: 2.006 MB / 0.5396 GB, free: 4.402 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002911/0.3991, allocations: 0.9164 MB / 0.5405 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.4093, allocations: 5.584 MB / 0.5459 GB, free: 360 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00536/0.4147, allocations: 3.354 MB / 0.5492 GB, free: 12.95 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003899/0.4187, allocations: 1.717 MB / 0.5509 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004216/0.4229, allocations: 2.52 MB / 0.5533 GB, free: 8.695 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001469/0.4244, allocations: 388 kB / 0.5537 GB, free: 8.316 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003745/0.4282, allocations: 1.412 MB / 0.5551 GB, free: 6.902 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003142/0.4313, allocations: 2.213 MB / 0.5572 GB, free: 4.684 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004589/0.436, allocations: 2.459 MB / 0.5596 GB, free: 2.211 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01161/0.4476, allocations: 7.897 MB / 0.5673 GB, free: 10.29 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.4476, allocations: 0 / 0.5673 GB, free: 10.29 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4477, allocations: 0 / 0.5673 GB, free: 10.29 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003384/0.448, allocations: 4 kB / 0.5674 GB, free: 10.29 MB / 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.01754/0.4656, allocations: 5.513 MB / 0.5727 GB, free: 4.695 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.4656, allocations: 8.031 kB / 0.5727 GB, free: 4.688 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01257/0.4782, allocations: 2.483 MB / 0.5752 GB, free: 2.195 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008935/0.4872, allocations: 3.415 MB / 0.5785 GB, free: 14.72 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002608/0.4875, allocations: 250.4 kB / 0.5787 GB, free: 14.47 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001619/0.4891, allocations: 335.4 kB / 0.5791 GB, free: 14.15 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02/0.5091, allocations: 10.88 MB / 0.5897 GB, free: 2.531 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001391/0.5093, allocations: 51.58 kB / 0.5897 GB, free: 2.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004423/0.5098, allocations: 151.9 kB / 0.5899 GB, free: 2.332 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002971/0.5127, allocations: 1.998 MB / 0.5918 GB, free: 340 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02057/0.5333, allocations: 9.448 MB / 0.6011 GB, free: 6.863 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05543/0.5888, allocations: 41.04 MB / 0.6411 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01043/0.5993, allocations: 4.258 MB / 0.6453 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002622/0.6019, allocations: 1.932 MB / 0.6472 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01186/0.6138, allocations: 7.614 MB / 0.6546 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.084e-05/0.6139, allocations: 59.48 kB / 0.6547 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 6.492e-06/0.6139, allocations: 3.984 kB / 0.6547 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1592/0.7731, allocations: 40.92 MB / 0.6946 GB, free: 5.16 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.7732, allocations: 205.9 kB / 0.6948 GB, free: 4.918 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006027/0.7793, allocations: 4.313 MB / 0.699 GB, free: 0.5781 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005594/0.7798, allocations: 61.64 kB / 0.6991 GB, free: 0.5117 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002195/0.782, allocations: 3.168 MB / 0.7022 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009702/0.783, allocations: 0.8791 MB / 0.7031 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001823/0.7848, allocations: 1.352 MB / 0.7044 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001063/0.785, allocations: 305.1 kB / 0.7047 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004579/0.7895, allocations: 3.628 MB / 0.7082 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2642/1.054, allocations: 7.292 MB / 0.7153 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01492/1.069, allocations: 11.63 MB / 0.7267 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000218/1.069, allocations: 38 kB / 0.7267 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03892/1.108, allocations: 16.2 MB / 0.7425 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.229e-05/1.108, allocations: 66.64 kB / 0.7426 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001037/1.108, allocations: 125.8 kB / 0.7427 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02255/1.131, allocations: 6.222 MB / 0.7488 GB, free: 149.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005421/1.136, allocations: 1.494 MB / 0.7503 GB, free: 148.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02858/1.165, allocations: 27.63 MB / 0.7772 GB, free: 121.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005655/1.17, allocations: 411.8 kB / 0.7776 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008371/1.171, allocations: 384 kB / 0.778 GB, free: 120.8 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.003077/1.174, allocations: 2.221 MB / 0.7802 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008173/1.175, allocations: 394.9 kB / 0.7805 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02574/1.201, allocations: 11.29 MB / 0.7916 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.796e-05/1.201, allocations: 24 kB / 0.7916 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/1.201, allocations: 12 kB / 0.7916 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.677e-05/1.201, allocations: 11.95 kB / 0.7916 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03856/1.24, allocations: 20.64 MB / 0.8118 GB, free: 86.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.529e-05/1.24, allocations: 9.297 kB / 0.8118 GB, free: 86.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00201/1.242, allocations: 384 kB / 0.8122 GB, free: 85.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01942/1.261, allocations: 5.304 MB / 0.8173 GB, free: 80.41 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006516/1.262, allocations: 51.3 kB / 0.8174 GB, free: 80.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02375/1.286, allocations: 22.7 MB / 0.8396 GB, free: 57.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.286, allocations: 4 kB / 0.8396 GB, free: 57.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02921/1.315, allocations: 14.6 MB / 0.8538 GB, free: 42.76 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/1.317, allocations: 451.9 kB / 0.8542 GB, free: 42.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008349/1.318, allocations: 44 kB / 0.8543 GB, free: 42.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002273/1.32, allocations: 177.4 kB / 0.8545 GB, free: 42.08 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006513/1.321, allocations: 161 kB / 0.8546 GB, free: 41.92 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/1.321, allocations: 67.91 kB / 0.8547 GB, free: 41.86 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003969/1.325, allocations: 2.705 MB / 0.8573 GB, free: 39.15 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.325, allocations: 0 / 0.8573 GB, free: 39.15 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007514/1.332, allocations: 1.37 MB / 0.8587 GB, free: 37.78 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.0007738/1.333, allocations: 194.2 kB / 0.8588 GB, free: 37.59 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01062/1.344, allocations: 8.34 MB / 0.867 GB, free: 29.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/1.344, allocations: 4 kB / 0.867 GB, free: 29.26 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003714/1.347, allocations: 3.214 MB / 0.8701 GB, free: 26.04 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003324/1.351, allocations: 0.504 MB / 0.8706 GB, free: 25.54 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01576/1.367, allocations: 11.81 MB / 0.8822 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003478/1.37, allocations: 3.51 MB / 0.8856 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003938/1.374, allocations: 1.956 MB / 0.8875 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009579/1.375, allocations: 267.4 kB / 0.8878 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of SimCode: time 1.152e-06/1.375, allocations: 0 / 0.8878 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of Templates: time 0.3916/1.767, allocations: 67.51 MB / 0.9537 GB, free: 200.9 MB / 0.6075 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches