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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.00109/0.00109, allocations: 187 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.192/1.192, allocations: 205.1 MB / 223.7 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008823/0.0008822, allocations: 100.3 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007294/0.0007294, allocations: 39.94 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.1885, allocations: 46.61 MB / 373.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03232/0.2209, allocations: 53.47 MB / 427.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02175/0.2427, allocations: 11.22 MB / 438.5 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007844/0.2506, allocations: 231.4 kB / 438.7 MB, free: 380 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005352/0.256, allocations: 3.136 MB / 441.9 MB, free: 13.22 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005254/0.2613, allocations: 2.406 MB / 444.3 MB, free: 10.81 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.2631, allocations: 0.9167 MB / 445.2 MB, free: 9.891 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009098/0.2723, allocations: 9.472 MB / 454.7 MB, free: 412 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005003/0.2773, allocations: 4.267 MB / 458.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003038/0.2803, allocations: 1.981 MB / 460.9 MB, free: 10.09 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004253/0.2846, allocations: 3.439 MB / 464.4 MB, free: 6.637 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001272/0.2859, allocations: 332 kB / 464.7 MB, free: 6.312 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003051/0.289, allocations: 1.412 MB / 466.1 MB, free: 4.898 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003248/0.2922, allocations: 2.758 MB / 468.8 MB, free: 2.133 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004142/0.2964, allocations: 3.125 MB / 472 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007658/0.304, allocations: 9.937 MB / 481.9 MB, free: 5.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3041, allocations: 0 / 481.9 MB, free: 5.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3041, allocations: 4 kB / 481.9 MB, free: 5.016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00014/0.3042, allocations: 4 kB / 481.9 MB, free: 5.012 MB / 362.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.01127/0.3155, allocations: 7.299 MB / 489.2 MB, free: 13.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.3155, allocations: 8.031 kB / 489.2 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01431/0.3299, allocations: 3.942 MB / 493.2 MB, free: 9.664 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008116/0.338, allocations: 4.208 MB / 497.4 MB, free: 5.395 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/0.3382, allocations: 316.4 kB / 497.7 MB, free: 5.082 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007973/0.339, allocations: 435.6 kB / 498.1 MB, free: 4.656 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1522/0.4913, allocations: 15.72 MB / 0.5018 GB, free: 101.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001282/0.4914, allocations: 52.5 kB / 0.5018 GB, free: 101.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005075/0.4919, allocations: 202.7 kB / 0.502 GB, free: 101.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003716/0.4957, allocations: 3.224 MB / 0.5052 GB, free: 100.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01923/0.5149, allocations: 14.12 MB / 0.519 GB, free: 88.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04731/0.5622, allocations: 57.77 MB / 0.5754 GB, free: 29.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.5723, allocations: 6.565 MB / 0.5818 GB, free: 23.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003138/0.5755, allocations: 3.686 MB / 0.5854 GB, free: 19.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0165/0.592, allocations: 14.65 MB / 0.5997 GB, free: 4.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.5921, allocations: 60.5 kB / 0.5998 GB, free: 4.109 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 4.939e-06/0.5921, allocations: 0 / 0.5998 GB, free: 4.109 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.1332/0.7253, allocations: 42.39 MB / 0.6412 GB, free: 9.637 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.166e-05/0.7254, allocations: 213.9 kB / 0.6414 GB, free: 9.383 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006459/0.7319, allocations: 5.498 MB / 0.6467 GB, free: 3.898 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000571/0.7325, allocations: 69.7 kB / 0.6468 GB, free: 3.824 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1391/0.8716, allocations: 4.357 MB / 0.6511 GB, free: 141.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/0.873, allocations: 1.257 MB / 0.6523 GB, free: 141.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002367/0.8753, allocations: 1.863 MB / 0.6541 GB, free: 141 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 3.141e-05/0.8754, allocations: 301.1 kB / 0.6544 GB, free: 140.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005484/0.8809, allocations: 4.803 MB / 0.6591 GB, free: 139 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007375/0.8883, allocations: 9.805 MB / 0.6687 GB, free: 130.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01274/0.901, allocations: 15.57 MB / 0.6839 GB, free: 119.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001341/0.9012, allocations: 51.53 kB / 0.6839 GB, free: 119.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.0362/0.9374, allocations: 19.56 MB / 0.703 GB, free: 104.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001921/0.9376, allocations: 80 kB / 0.7031 GB, free: 104.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002427/0.9379, allocations: 174 kB / 0.7033 GB, free: 104.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02034/0.9582, allocations: 5.947 MB / 0.7091 GB, free: 98.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006269/0.9645, allocations: 2.114 MB / 0.7111 GB, free: 96.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02453/0.9891, allocations: 24.76 MB / 0.7353 GB, free: 71.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006991/0.9961, allocations: 0.5578 MB / 0.7358 GB, free: 70.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00142/0.9975, allocations: 0.5117 MB / 0.7363 GB, free: 70.36 MB / 426.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.005127/1.003, allocations: 3.102 MB / 0.7394 GB, free: 67.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/1.004, allocations: 0.4974 MB / 0.7399 GB, free: 66.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02832/1.032, allocations: 12.93 MB / 0.7525 GB, free: 53.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-05/1.032, allocations: 55.83 kB / 0.7525 GB, free: 53.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.257e-05/1.032, allocations: 11.39 kB / 0.7526 GB, free: 53.69 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-05/1.032, allocations: 19.94 kB / 0.7526 GB, free: 53.67 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04425/1.076, allocations: 24.58 MB / 0.7766 GB, free: 28.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.641e-05/1.077, allocations: 10.88 kB / 0.7766 GB, free: 28.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002713/1.079, allocations: 0.5849 MB / 0.7772 GB, free: 28.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01745/1.097, allocations: 4.962 MB / 0.782 GB, free: 23.06 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005885/1.097, allocations: 55.98 kB / 0.7821 GB, free: 23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01997/1.117, allocations: 19.97 MB / 0.8016 GB, free: 2.773 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/1.117, allocations: 16 kB / 0.8016 GB, free: 2.758 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4354/1.553, allocations: 146.6 MB / 0.9447 GB, free: 26.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003352/1.556, allocations: 1.243 MB / 0.946 GB, free: 25.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001219/1.557, allocations: 56 kB / 0.946 GB, free: 25.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00333/1.561, allocations: 275.1 kB / 0.9463 GB, free: 25.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008248/1.562, allocations: 181.6 kB / 0.9464 GB, free: 25.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003762/1.562, allocations: 91.94 kB / 0.9465 GB, free: 25.01 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004704/1.567, allocations: 3.418 MB / 0.9499 GB, free: 21.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.567, allocations: 0 / 0.9499 GB, free: 21.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0108/1.578, allocations: 2.405 MB / 0.9522 GB, free: 19.21 MB / 442.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.0006663/1.578, allocations: 213.3 kB / 0.9524 GB, free: 19.01 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0139/1.592, allocations: 10.92 MB / 0.9631 GB, free: 8.086 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.545e-06/1.592, allocations: 1.875 kB / 0.9631 GB, free: 8.086 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1393/1.731, allocations: 4.094 MB / 0.9671 GB, free: 142 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003149/1.735, allocations: 0.5863 MB / 0.9677 GB, free: 142 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02444/1.759, allocations: 21.64 MB / 0.9888 GB, free: 134.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004448/1.764, allocations: 4.74 MB / 0.9934 GB, free: 132.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.006195/1.77, allocations: 3.038 MB / 0.9964 GB, free: 132.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001518/1.771, allocations: 354.2 kB / 0.9967 GB, free: 132.7 MB / 442.7 MB Notification: Performance of SimCode: time 7.62e-07/1.771, allocations: 0 / 0.9967 GB, free: 132.7 MB / 442.7 MB Notification: Performance of Templates: time 0.1287/1.9, allocations: 116.2 MB / 1.11 GB, free: 19.22 MB / 442.7 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@2/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