Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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) 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(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009959/0.0009959, allocations: 98.44 kB / 17.3 MB, free: 6.344 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.00113/0.00113, allocations: 179.5 kB / 18.21 MB, free: 5.531 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.444/1.444, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.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.000498/0.000498, allocations: 16 kB / 281.4 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1034, allocations: 47.58 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.252/0.3554, allocations: 52.06 MB / 381 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02629/0.3817, allocations: 11.16 MB / 392.2 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01328/0.395, allocations: 229.1 kB / 392.4 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00283/0.3979, allocations: 0.6082 MB / 393 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009767/0.4077, allocations: 2.42 MB / 395.4 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00297/0.4107, allocations: 0.9113 MB / 396.3 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01461/0.4253, allocations: 9.437 MB / 405.8 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009101/0.4345, allocations: 5.741 MB / 411.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004282/0.4388, allocations: 1.752 MB / 413.3 MB, free: 280 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005135/0.4439, allocations: 3.139 MB / 416.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.4452, allocations: 236 kB / 416.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00338/0.4486, allocations: 1.325 MB / 418 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002833/0.4514, allocations: 2.648 MB / 420.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004358/0.4558, allocations: 2.97 MB / 423.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01315/0.469, allocations: 9.692 MB / 433.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.469, allocations: 3.938 kB / 433.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.469, allocations: 0 / 433.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004145/0.4695, allocations: 0 / 433.3 MB, free: 14.11 MB / 350.1 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.01747/0.4869, allocations: 6.061 MB / 439.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.487, allocations: 8.031 kB / 439.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01757/0.5046, allocations: 4.039 MB / 443.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01009/0.5147, allocations: 4.201 MB / 447.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002792/0.515, allocations: 318.3 kB / 447.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00181/0.5168, allocations: 435.5 kB / 448.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02791/0.5448, allocations: 15.74 MB / 464.1 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001636/0.545, allocations: 55.53 kB / 464.1 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008057/0.5458, allocations: 203 kB / 464.3 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006148/0.5519, allocations: 3.216 MB / 467.5 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03235/0.5843, allocations: 14.15 MB / 481.7 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09007/0.6744, allocations: 57.79 MB / 0.5268 GB, free: 2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01478/0.6893, allocations: 6.558 MB / 0.5332 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005723/0.6951, allocations: 3.695 MB / 0.5368 GB, free: 7.484 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.242/0.9371, allocations: 14.65 MB / 0.5511 GB, free: 174.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.88e-05/0.9372, allocations: 68.2 kB / 0.5512 GB, free: 174.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 7.374e-06/0.9372, allocations: 0 / 0.5512 GB, free: 174.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1459/1.083, allocations: 42.65 MB / 0.5929 GB, free: 149 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/1.083, allocations: 225.8 kB / 0.5931 GB, free: 148.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006682/1.09, allocations: 5.498 MB / 0.5984 GB, free: 143.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008333/1.091, allocations: 76.59 kB / 0.5985 GB, free: 143.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002063/1.093, allocations: 4.346 MB / 0.6028 GB, free: 138.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001441/1.094, allocations: 1.26 MB / 0.604 GB, free: 137.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009641/1.095, allocations: 0.781 MB / 0.6048 GB, free: 136.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.841e-05/1.095, allocations: 301.1 kB / 0.605 GB, free: 136.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006/1.101, allocations: 4.808 MB / 0.6097 GB, free: 131.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008869/1.11, allocations: 9.805 MB / 0.6193 GB, free: 119.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01562/1.126, allocations: 15.57 MB / 0.6345 GB, free: 101.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/1.126, allocations: 51.94 kB / 0.6346 GB, free: 101.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04411/1.17, allocations: 19.58 MB / 0.6537 GB, free: 81.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/1.17, allocations: 83.94 kB / 0.6538 GB, free: 81.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001833/1.171, allocations: 173.1 kB / 0.6539 GB, free: 81.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02317/1.194, allocations: 5.97 MB / 0.6598 GB, free: 75.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007356/1.201, allocations: 2.113 MB / 0.6618 GB, free: 73.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02696/1.228, allocations: 24.78 MB / 0.686 GB, free: 48.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007315/1.236, allocations: 0.5695 MB / 0.6866 GB, free: 47.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001303/1.237, allocations: 0.505 MB / 0.6871 GB, free: 47.26 MB / 462.1 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.004618/1.242, allocations: 3.104 MB / 0.6901 GB, free: 44.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009472/1.242, allocations: 0.4936 MB / 0.6906 GB, free: 43.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02961/1.272, allocations: 12.95 MB / 0.7032 GB, free: 30.62 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-05/1.272, allocations: 57.09 kB / 0.7033 GB, free: 30.57 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/1.272, allocations: 8 kB / 0.7033 GB, free: 30.56 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.257e-05/1.272, allocations: 15.94 kB / 0.7033 GB, free: 30.54 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2519/1.524, allocations: 24.65 MB / 0.7274 GB, free: 154.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.58e-05/1.524, allocations: 3.938 kB / 0.7274 GB, free: 154.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00305/1.527, allocations: 0.5798 MB / 0.728 GB, free: 154.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02044/1.548, allocations: 5.001 MB / 0.7328 GB, free: 154.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008111/1.549, allocations: 62.53 kB / 0.7329 GB, free: 154.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02434/1.573, allocations: 19.99 MB / 0.7524 GB, free: 144 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/1.573, allocations: 11.56 kB / 0.7524 GB, free: 144 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03366/1.607, allocations: 17.47 MB / 0.7695 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003211/1.61, allocations: 1.262 MB / 0.7707 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001951/1.612, allocations: 61.28 kB / 0.7708 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004167/1.616, allocations: 263.6 kB / 0.771 GB, free: 127.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000973/1.617, allocations: 191 kB / 0.7712 GB, free: 127.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000275/1.617, allocations: 88.86 kB / 0.7713 GB, free: 127 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004818/1.622, allocations: 3.418 MB / 0.7746 GB, free: 123.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.622, allocations: 0 / 0.7746 GB, free: 123.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007548/1.63, allocations: 1.763 MB / 0.7764 GB, free: 121.9 MB / 462.1 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.0006998/1.631, allocations: 211.2 kB / 0.7766 GB, free: 121.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01796/1.649, allocations: 10.92 MB / 0.7872 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.638e-05/1.649, allocations: 4 kB / 0.7872 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005948/1.655, allocations: 4.105 MB / 0.7912 GB, free: 106.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007817/1.662, allocations: 0.5935 MB / 0.7918 GB, free: 106.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0243/1.687, allocations: 19.31 MB / 0.8107 GB, free: 86.95 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00429/1.691, allocations: 4.631 MB / 0.8152 GB, free: 82.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006632/1.698, allocations: 2.966 MB / 0.8181 GB, free: 79.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/1.699, allocations: 359.4 kB / 0.8184 GB, free: 78.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/1.699, allocations: 0 / 0.8184 GB, free: 78.95 MB / 462.1 MB Notification: Performance of Templates: time 0.3212/2.02, allocations: 76.77 MB / 0.8934 GB, free: 140.8 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches