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.001123/0.001123, allocations: 104.1 kB / 18.45 MB, free: 4.625 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.001206/0.001206, allocations: 184.2 kB / 19.37 MB, free: 3.707 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.268/1.268, allocations: 222.9 MB / 243.1 MB, free: 15.17 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.1956/0.1956, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.89 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3346, allocations: 60.82 MB / 0.5195 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01429/0.349, allocations: 12.06 MB / 0.5313 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009956/0.359, allocations: 4.293 MB / 0.5355 GB, free: 7.898 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002582/0.3616, allocations: 76.72 kB / 0.5356 GB, free: 7.883 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005155/0.3668, allocations: 2.728 MB / 0.5383 GB, free: 6.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005585/0.3724, allocations: 2.022 MB / 0.5402 GB, free: 4.598 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.3745, allocations: 0.912 MB / 0.5411 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008715/0.3833, allocations: 5.573 MB / 0.5466 GB, free: 488 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004267/0.3876, allocations: 3.366 MB / 0.5499 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003198/0.3908, allocations: 1.713 MB / 0.5515 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004055/0.3949, allocations: 2.52 MB / 0.554 GB, free: 8.812 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001164/0.3961, allocations: 388 kB / 0.5544 GB, free: 8.434 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003032/0.3991, allocations: 1.42 MB / 0.5557 GB, free: 7.012 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002441/0.4016, allocations: 2.213 MB / 0.5579 GB, free: 4.793 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00383/0.4054, allocations: 2.443 MB / 0.5603 GB, free: 2.336 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009025/0.4145, allocations: 7.904 MB / 0.568 GB, free: 10.4 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.4145, allocations: 0 / 0.568 GB, free: 10.4 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4146, allocations: 0 / 0.568 GB, free: 10.4 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000234/0.4148, allocations: 4 kB / 0.568 GB, free: 10.4 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.01269/0.4275, allocations: 5.513 MB / 0.5734 GB, free: 4.809 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.4276, allocations: 8.031 kB / 0.5734 GB, free: 4.801 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01126/0.4388, allocations: 2.471 MB / 0.5758 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007497/0.4464, allocations: 3.422 MB / 0.5792 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001988/0.4466, allocations: 250.4 kB / 0.5794 GB, free: 14.6 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/0.4478, allocations: 339.6 kB / 0.5797 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0185/0.4663, allocations: 10.86 MB / 0.5903 GB, free: 2.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001367/0.4665, allocations: 51.53 kB / 0.5904 GB, free: 2.609 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004394/0.4669, allocations: 163.8 kB / 0.5905 GB, free: 2.449 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003008/0.4699, allocations: 1.998 MB / 0.5925 GB, free: 460 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01836/0.4883, allocations: 9.448 MB / 0.6017 GB, free: 6.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05137/0.5397, allocations: 41.05 MB / 0.6418 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01111/0.5509, allocations: 4.261 MB / 0.646 GB, free: 8.289 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002714/0.5537, allocations: 1.931 MB / 0.6478 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01176/0.5654, allocations: 7.614 MB / 0.6553 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.5655, allocations: 55.5 kB / 0.6553 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 4.929e-06/0.5655, allocations: 4 kB / 0.6553 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.165/0.7305, allocations: 40.91 MB / 0.6953 GB, free: 5.277 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.7307, allocations: 209.9 kB / 0.6955 GB, free: 5.031 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007008/0.7377, allocations: 4.309 MB / 0.6997 GB, free: 0.6953 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005536/0.7383, allocations: 57.7 kB / 0.6998 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002234/0.7405, allocations: 3.168 MB / 0.7028 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001235/0.7418, allocations: 0.8791 MB / 0.7037 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002959/0.7447, allocations: 1.352 MB / 0.705 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.93e-05/0.7449, allocations: 305.1 kB / 0.7053 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004963/0.7498, allocations: 3.628 MB / 0.7089 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2566/1.006, allocations: 7.293 MB / 0.716 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01397/1.02, allocations: 11.63 MB / 0.7273 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002143/1.021, allocations: 35.91 kB / 0.7274 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03674/1.057, allocations: 16.21 MB / 0.7432 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.621e-05/1.058, allocations: 64.62 kB / 0.7433 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001258/1.058, allocations: 125.5 kB / 0.7434 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02238/1.08, allocations: 6.224 MB / 0.7495 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004825/1.085, allocations: 1.49 MB / 0.7509 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02892/1.114, allocations: 27.62 MB / 0.7779 GB, free: 121.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00556/1.12, allocations: 409.7 kB / 0.7783 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008206/1.12, allocations: 391.8 kB / 0.7787 GB, free: 120.9 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.003018/1.123, allocations: 2.226 MB / 0.7808 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006949/1.124, allocations: 394.9 kB / 0.7812 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02645/1.151, allocations: 11.29 MB / 0.7922 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.5e-05/1.151, allocations: 24 kB / 0.7923 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/1.151, allocations: 12 kB / 0.7923 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.796e-05/1.151, allocations: 7.969 kB / 0.7923 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03852/1.189, allocations: 20.65 MB / 0.8124 GB, free: 86.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-05/1.189, allocations: 9.312 kB / 0.8125 GB, free: 86.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/1.191, allocations: 387.4 kB / 0.8128 GB, free: 85.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01969/1.211, allocations: 5.308 MB / 0.818 GB, free: 80.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004343/1.211, allocations: 43.75 kB / 0.8181 GB, free: 80.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02369/1.235, allocations: 22.7 MB / 0.8402 GB, free: 57.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/1.235, allocations: 4 kB / 0.8402 GB, free: 57.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0279/1.263, allocations: 14.6 MB / 0.8545 GB, free: 42.87 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/1.264, allocations: 447.9 kB / 0.8549 GB, free: 42.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006777/1.265, allocations: 47.98 kB / 0.855 GB, free: 42.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002297/1.267, allocations: 181.8 kB / 0.8551 GB, free: 42.19 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006141/1.268, allocations: 153.3 kB / 0.8553 GB, free: 42.04 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001931/1.268, allocations: 67.98 kB / 0.8553 GB, free: 41.97 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003105/1.271, allocations: 2.705 MB / 0.858 GB, free: 39.26 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.41e-07/1.271, allocations: 0 / 0.858 GB, free: 39.26 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004941/1.276, allocations: 1.372 MB / 0.8593 GB, free: 37.89 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.0004817/1.277, allocations: 186.3 kB / 0.8595 GB, free: 37.71 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009844/1.286, allocations: 8.349 MB / 0.8676 GB, free: 29.38 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/1.286, allocations: 4 kB / 0.8677 GB, free: 29.37 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00373/1.29, allocations: 3.213 MB / 0.8708 GB, free: 26.15 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003143/1.293, allocations: 0.5038 MB / 0.8713 GB, free: 25.65 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.016/1.309, allocations: 12.25 MB / 0.8832 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0028/1.312, allocations: 3.486 MB / 0.8866 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001207/1.313, allocations: 311.2 kB / 0.8869 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of SimCode: time 6.52e-07/1.313, allocations: 0 / 0.8869 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.3721/1.686, allocations: 110.2 MB / 0.9946 GB, free: 172.2 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/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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches