Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008939/0.000894, allocations: 182.2 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 225.7 MB / 243.2 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000839/0.000839, allocations: 97 kB / 294.4 MB, free: 9.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002648/0.0002651, allocations: 12 kB / 354.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.2081, allocations: 50.41 MB / 404.6 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03484/0.243, allocations: 48.55 MB / 453.1 MB, free: 14.6 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02434/0.2674, allocations: 14.03 MB / 467.2 MB, free: 15.83 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00752/0.275, allocations: 231.4 kB / 467.4 MB, free: 15.6 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.2762, allocations: 0.6065 MB / 468 MB, free: 14.99 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004516/0.2808, allocations: 2.418 MB / 470.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001577/0.2824, allocations: 0.9128 MB / 471.3 MB, free: 11.65 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.009314/0.2917, allocations: 9.909 MB / 481.2 MB, free: 1.723 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006965/0.2987, allocations: 6.757 MB / 488 MB, free: 10.62 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003259/0.302, allocations: 1.91 MB / 489.9 MB, free: 8.707 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004009/0.306, allocations: 3.126 MB / 493 MB, free: 5.57 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006367/0.3066, allocations: 236 kB / 493.3 MB, free: 5.34 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002253/0.3089, allocations: 1.314 MB / 494.6 MB, free: 4.023 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00202/0.3109, allocations: 2.594 MB / 497.2 MB, free: 1.422 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002385/0.3133, allocations: 2.971 MB / 0.4884 GB, free: 14.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008779/0.3221, allocations: 9.689 MB / 0.4979 GB, free: 4.703 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3222, allocations: 0 / 0.4979 GB, free: 4.703 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3222, allocations: 0 / 0.4979 GB, free: 4.703 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002612/0.3224, allocations: 0 / 0.4979 GB, free: 4.703 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.1863/0.5087, allocations: 6.042 MB / 0.5038 GB, free: 96.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.5088, allocations: 10.53 kB / 0.5038 GB, free: 96.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01425/0.523, allocations: 4.037 MB / 0.5077 GB, free: 94.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007482/0.5305, allocations: 4.098 MB / 0.5117 GB, free: 92.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.5307, allocations: 317 kB / 0.512 GB, free: 92.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008405/0.5316, allocations: 429 kB / 0.5124 GB, free: 92.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01818/0.5497, allocations: 15.72 MB / 0.5278 GB, free: 76.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.627e-05/0.5499, allocations: 60.69 kB / 0.5278 GB, free: 75.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004487/0.5503, allocations: 207.5 kB / 0.528 GB, free: 75.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003486/0.5538, allocations: 3.22 MB / 0.5312 GB, free: 72.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01914/0.573, allocations: 14.08 MB / 0.5449 GB, free: 58.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05419/0.6272, allocations: 57.8 MB / 0.6014 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01245/0.6397, allocations: 6.556 MB / 0.6078 GB, free: 8.566 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004706/0.6445, allocations: 3.673 MB / 0.6114 GB, free: 4.875 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02163/0.6661, allocations: 14.65 MB / 0.6257 GB, free: 5.707 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.301e-05/0.6662, allocations: 60.56 kB / 0.6257 GB, free: 5.637 MB / 410.7 MB Notification: Performance of pre-optimization done (n=289): time 6.121e-06/0.6662, allocations: 3.938 kB / 0.6257 GB, free: 5.633 MB / 410.7 MB Notification: Performance of matching and sorting (n=339): time 0.3142/0.9805, allocations: 42.58 MB / 0.6673 GB, free: 145 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.877e-05/0.9806, allocations: 223.2 kB / 0.6675 GB, free: 144.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006722/0.9873, allocations: 5.419 MB / 0.6728 GB, free: 143.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005872/0.9879, allocations: 72.42 kB / 0.6729 GB, free: 143.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00204/0.9899, allocations: 4.363 MB / 0.6772 GB, free: 140.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001165/0.9911, allocations: 1.252 MB / 0.6784 GB, free: 139.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004168/0.9915, allocations: 180.6 kB / 0.6786 GB, free: 139.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003139/0.9919, allocations: 0.6892 MB / 0.6792 GB, free: 138.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005117/0.997, allocations: 4.772 MB / 0.6839 GB, free: 136.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0069/1.004, allocations: 9.777 MB / 0.6934 GB, free: 127.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0131/1.017, allocations: 15.53 MB / 0.7086 GB, free: 111.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.049e-05/1.017, allocations: 48 kB / 0.7086 GB, free: 111.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03423/1.051, allocations: 19.51 MB / 0.7277 GB, free: 92.26 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.149e-05/1.051, allocations: 80 kB / 0.7278 GB, free: 92.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001267/1.052, allocations: 172 kB / 0.7279 GB, free: 92.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01863/1.07, allocations: 5.965 MB / 0.7338 GB, free: 86.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006396/1.077, allocations: 2.115 MB / 0.7358 GB, free: 83.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0247/1.101, allocations: 24.77 MB / 0.76 GB, free: 58.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006815/1.108, allocations: 0.5665 MB / 0.7606 GB, free: 58.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009532/1.109, allocations: 0.5046 MB / 0.7611 GB, free: 57.82 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * 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 {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004918/1.114, allocations: 3.1 MB / 0.7641 GB, free: 54.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009517/1.115, allocations: 0.4897 MB / 0.7646 GB, free: 54.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02442/1.14, allocations: 12.93 MB / 0.7772 GB, free: 41.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.444e-05/1.14, allocations: 56.69 kB / 0.7772 GB, free: 41.15 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/1.14, allocations: 16 kB / 0.7773 GB, free: 41.14 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.451e-05/1.14, allocations: 15.89 kB / 0.7773 GB, free: 41.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04043/1.18, allocations: 24.62 MB / 0.8013 GB, free: 16.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.391e-05/1.18, allocations: 8 kB / 0.8013 GB, free: 16.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002693/1.183, allocations: 0.5811 MB / 0.8019 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0168/1.2, allocations: 4.989 MB / 0.8068 GB, free: 10.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001079/1.201, allocations: 71.08 kB / 0.8068 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2125/1.413, allocations: 19.99 MB / 0.8264 GB, free: 146.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/1.413, allocations: 13.77 kB / 0.8264 GB, free: 146.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03062/1.444, allocations: 17.44 MB / 0.8434 GB, free: 141.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001428/1.446, allocations: 0.5457 MB / 0.8439 GB, free: 141.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008581/1.446, allocations: 51.69 kB / 0.844 GB, free: 141.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002474/1.449, allocations: 268 kB / 0.8442 GB, free: 141.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007135/1.45, allocations: 190.4 kB / 0.8444 GB, free: 141.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000248/1.45, allocations: 84.3 kB / 0.8445 GB, free: 141.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003901/1.454, allocations: 3.36 MB / 0.8478 GB, free: 140.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.454, allocations: 0 / 0.8478 GB, free: 140.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005811/1.46, allocations: 1.766 MB / 0.8495 GB, free: 139.9 MB / 458.7 MB 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 (254): * Single equations (assignments): 246 * Array equations: 6 * 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 {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005304/1.46, allocations: 214.7 kB / 0.8497 GB, free: 139.7 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01251/1.473, allocations: 10.88 MB / 0.8603 GB, free: 131 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/1.473, allocations: 0 / 0.8603 GB, free: 131 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004382/1.477, allocations: 4.089 MB / 0.8643 GB, free: 127.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00718/1.484, allocations: 0.5935 MB / 0.8649 GB, free: 126.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/1.508, allocations: 19.26 MB / 0.8837 GB, free: 107.6 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003575/1.511, allocations: 4.615 MB / 0.8882 GB, free: 102.9 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0062/1.517, allocations: 2.966 MB / 0.8911 GB, free: 99.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/1.519, allocations: 355.4 kB / 0.8915 GB, free: 99.62 MB / 458.7 MB Notification: Performance of SimCode: time 9.31e-07/1.519, allocations: 0 / 0.8915 GB, free: 99.62 MB / 458.7 MB Notification: Performance of Templates: time 0.09834/1.617, allocations: 76.7 MB / 0.9664 GB, free: 23.02 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches