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.0009258/0.0009259, allocations: 98.47 kB / 18.01 MB, free: 5.734 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.001089/0.001089, allocations: 176.1 kB / 18.91 MB, free: 4.871 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.394/1.394, allocations: 223.3 MB / 243 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2198/0.2198, allocations: 44.24 MB / 338.3 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005735/0.0005737, allocations: 12 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1863/0.1869, allocations: 61.92 MB / 472.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3137/0.5007, allocations: 45.74 MB / 0.5065 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02402/0.5248, allocations: 10.07 MB / 0.5163 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009584/0.5344, allocations: 203.8 kB / 0.5165 GB, free: 9.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001867/0.5363, allocations: 450.4 kB / 0.517 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006131/0.5424, allocations: 1.894 MB / 0.5188 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002224/0.5447, allocations: 0.8371 MB / 0.5196 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.5557, allocations: 7.925 MB / 0.5274 GB, free: 6.902 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006755/0.5625, allocations: 4.678 MB / 0.5319 GB, free: 4.527 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002963/0.5655, allocations: 1.32 MB / 0.5332 GB, free: 3.992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003699/0.5692, allocations: 2.41 MB / 0.5356 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00104/0.5703, allocations: 176.4 kB / 0.5357 GB, free: 2.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003135/0.5734, allocations: 1.285 MB / 0.537 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002359/0.5758, allocations: 1.978 MB / 0.5389 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00247/0.5783, allocations: 2.204 MB / 0.5411 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006599/0.5849, allocations: 6.031 MB / 0.547 GB, free: 10.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.585, allocations: 0 / 0.547 GB, free: 10.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.585, allocations: 0 / 0.547 GB, free: 10.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000237/0.5852, allocations: 0 / 0.547 GB, free: 10.75 MB / 398.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.01058/0.5958, allocations: 4.59 MB / 0.5514 GB, free: 6.117 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.5959, allocations: 8.031 kB / 0.5515 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0117/0.6076, allocations: 2.524 MB / 0.5539 GB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007362/0.615, allocations: 3.368 MB / 0.5572 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/0.6152, allocations: 242 kB / 0.5574 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009467/0.6162, allocations: 333.8 kB / 0.5578 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02134/0.6375, allocations: 10.89 MB / 0.5684 GB, free: 4.184 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000236/0.6378, allocations: 63.42 kB / 0.5685 GB, free: 4.121 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001111/0.6389, allocations: 150.6 kB / 0.5686 GB, free: 4.008 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003571/0.6425, allocations: 2.002 MB / 0.5706 GB, free: 2.012 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02087/0.6634, allocations: 9.474 MB / 0.5798 GB, free: 8.523 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05938/0.7228, allocations: 41.23 MB / 0.6201 GB, free: 14.27 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01138/0.7343, allocations: 4.267 MB / 0.6242 GB, free: 9.863 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002976/0.7373, allocations: 1.929 MB / 0.6261 GB, free: 7.926 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01263/0.7499, allocations: 7.613 MB / 0.6336 GB, free: 15.98 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.054e-05/0.75, allocations: 59.5 kB / 0.6336 GB, free: 15.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 4.599e-06/0.75, allocations: 0 / 0.6336 GB, free: 15.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1734/0.9235, allocations: 41.43 MB / 0.6741 GB, free: 6.422 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.9236, allocations: 201.9 kB / 0.6743 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007926/0.9316, allocations: 4.309 MB / 0.6785 GB, free: 1.844 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006234/0.9322, allocations: 64.75 kB / 0.6785 GB, free: 1.777 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002704/0.935, allocations: 3.158 MB / 0.6816 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00147/0.9364, allocations: 0.8893 MB / 0.6825 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001363/0.9378, allocations: 0.5692 MB / 0.683 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.938, allocations: 301.1 kB / 0.6833 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005897/0.9439, allocations: 3.628 MB / 0.6869 GB, free: 9.23 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008542/0.9524, allocations: 7.29 MB / 0.694 GB, free: 140 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01528/0.9677, allocations: 11.62 MB / 0.7053 GB, free: 2.723 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001325/0.9679, allocations: 40 kB / 0.7054 GB, free: 2.684 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.2752/1.243, allocations: 16.22 MB / 0.7212 GB, free: 197.9 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001745/1.243, allocations: 59.72 kB / 0.7213 GB, free: 197.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002911/1.244, allocations: 128.2 kB / 0.7214 GB, free: 197.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02483/1.268, allocations: 6.264 MB / 0.7275 GB, free: 196.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005446/1.274, allocations: 1.49 MB / 0.729 GB, free: 196.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03265/1.307, allocations: 26.16 MB / 0.7545 GB, free: 177.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006367/1.313, allocations: 417.5 kB / 0.7549 GB, free: 176.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001786/1.315, allocations: 387.9 kB / 0.7553 GB, free: 176.5 MB / 0.545 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.005937/1.321, allocations: 2.22 MB / 0.7574 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001226/1.322, allocations: 394.8 kB / 0.7578 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02875/1.351, allocations: 11.31 MB / 0.7689 GB, free: 162.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.604e-05/1.351, allocations: 25.48 kB / 0.7689 GB, free: 162.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.046e-05/1.351, allocations: 15.81 kB / 0.7689 GB, free: 162.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.33e-05/1.351, allocations: 12.83 kB / 0.7689 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04129/1.392, allocations: 20.77 MB / 0.7892 GB, free: 141.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.83e-05/1.392, allocations: 4 kB / 0.7892 GB, free: 141.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002017/1.394, allocations: 379.4 kB / 0.7896 GB, free: 141.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02076/1.415, allocations: 5.342 MB / 0.7948 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004729/1.416, allocations: 54.41 kB / 0.7948 GB, free: 136 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0238/1.44, allocations: 21.21 MB / 0.8156 GB, free: 114.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/1.44, allocations: 12.62 kB / 0.8156 GB, free: 114.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02956/1.469, allocations: 14.63 MB / 0.8298 GB, free: 99.85 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/1.471, allocations: 459.9 kB / 0.8303 GB, free: 99.38 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007824/1.471, allocations: 47.06 kB / 0.8303 GB, free: 99.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00241/1.474, allocations: 179.7 kB / 0.8305 GB, free: 99.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006202/1.474, allocations: 154.1 kB / 0.8307 GB, free: 99.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001939/1.475, allocations: 70.38 kB / 0.8307 GB, free: 98.94 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003477/1.478, allocations: 2.705 MB / 0.8334 GB, free: 96.23 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.22e-07/1.478, allocations: 0 / 0.8334 GB, free: 96.23 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005517/1.484, allocations: 1.376 MB / 0.8347 GB, free: 94.86 MB / 0.545 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.0005057/1.484, allocations: 187 kB / 0.8349 GB, free: 94.67 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01022/1.494, allocations: 8.315 MB / 0.843 GB, free: 86.37 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/1.494, allocations: 0 / 0.843 GB, free: 86.37 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003748/1.498, allocations: 3.221 MB / 0.8461 GB, free: 83.14 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00577/1.504, allocations: 497.4 kB / 0.8466 GB, free: 82.66 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01752/1.521, allocations: 14.5 MB / 0.8608 GB, free: 68.07 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002974/1.524, allocations: 3.484 MB / 0.8642 GB, free: 64.55 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001508/1.526, allocations: 307.4 kB / 0.8645 GB, free: 64.25 MB / 0.545 GB Notification: Performance of SimCode: time 1.292e-06/1.526, allocations: 0 / 0.8645 GB, free: 64.25 MB / 0.545 GB Notification: Performance of Templates: time 0.3923/1.918, allocations: 108.7 MB / 0.9706 GB, free: 156.2 MB / 0.545 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