Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001766/0.001766, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.951/1.951, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008326/0.0008326, allocations: 78.39 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.374e-05/1.375e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09549/0.09552, allocations: 47.59 MB / 363.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3346/0.4301, allocations: 93.83 MB / 456.9 MB, free: 2.039 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4305, allocations: 90.62 kB / 457 MB, free: 1.992 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5632/0.9937, allocations: 120.9 MB / 0.5643 GB, free: 88.45 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.9937, allocations: 0 / 0.5643 GB, free: 88.45 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003999/0.9941, allocations: 129.8 kB / 0.5645 GB, free: 88.44 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02169/1.016, allocations: 6.508 MB / 0.5708 GB, free: 86.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/1.016, allocations: 9.406 kB / 0.5708 GB, free: 86.03 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0359/1.052, allocations: 9.429 MB / 0.58 GB, free: 85.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02546/1.077, allocations: 8.577 MB / 0.5884 GB, free: 84.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004674/1.078, allocations: 185 kB / 0.5886 GB, free: 84.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004346/1.082, allocations: 345.2 kB / 0.5889 GB, free: 84.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01739/1.1, allocations: 8.871 MB / 0.5976 GB, free: 81.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02295/1.123, allocations: 13.02 MB / 0.6103 GB, free: 70.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002813/1.123, allocations: 83.22 kB / 0.6104 GB, free: 70.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009643/1.124, allocations: 39.94 kB / 0.6104 GB, free: 70.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001603/1.126, allocations: 1.449 MB / 0.6118 GB, free: 69.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06276/1.188, allocations: 62.97 MB / 0.6733 GB, free: 5.496 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007763/1.196, allocations: 7.016 MB / 0.6802 GB, free: 14.35 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005763/1.202, allocations: 5.036 MB / 0.6851 GB, free: 9.305 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007961/1.203, allocations: 0.5816 MB / 0.6857 GB, free: 8.648 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.826e-05/1.203, allocations: 72.75 kB / 0.6857 GB, free: 8.566 MB / 426.7 MB Notification: Performance of pre-optimization done (n=346): time 7.715e-06/1.203, allocations: 0 / 0.6857 GB, free: 8.566 MB / 426.7 MB Notification: Performance of matching and sorting (n=610): time 0.4858/1.689, allocations: 75.3 MB / 0.7593 GB, free: 83.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/1.689, allocations: 267.5 kB / 0.7595 GB, free: 83.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006919/1.696, allocations: 4.005 MB / 0.7634 GB, free: 81.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002199/1.698, allocations: 29.17 kB / 0.7635 GB, free: 81.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002768/1.701, allocations: 4.066 MB / 0.7674 GB, free: 78.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003658/1.704, allocations: 2.057 MB / 0.7694 GB, free: 77.14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001885/1.706, allocations: 0 / 0.7694 GB, free: 77.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006675/1.707, allocations: 0.7187 MB / 0.7701 GB, free: 76.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0112/1.718, allocations: 8.435 MB / 0.7784 GB, free: 68.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01519/1.734, allocations: 12.62 MB / 0.7907 GB, free: 55.47 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01428/1.748, allocations: 10.41 MB / 0.8009 GB, free: 46.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001626/1.748, allocations: 40 kB / 0.8009 GB, free: 46.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=1266) (initialization): time 0.08845/1.837, allocations: 38.99 MB / 0.839 GB, free: 9.117 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000126/1.837, allocations: 64 kB / 0.839 GB, free: 9.055 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/1.837, allocations: 144 kB / 0.8392 GB, free: 8.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3291/2.166, allocations: 21.34 MB / 0.86 GB, free: 95.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006142/2.172, allocations: 1.49 MB / 0.8615 GB, free: 95.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1891/2.361, allocations: 137 MB / 0.9953 GB, free: 16.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01412/2.376, allocations: 0.5534 MB / 0.9958 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003932/2.38, allocations: 0.5388 MB / 0.9964 GB, free: 15.27 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (805): * Single equations (assignments): 798 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(17,45.3%) 115,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.004448/2.384, allocations: 0.4944 MB / 0.9968 GB, free: 15.01 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002393/2.386, allocations: 0.5477 MB / 0.9974 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4274/2.814, allocations: 35.46 MB / 1.032 GB, free: 93.75 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001105/2.814, allocations: 61.86 kB / 1.032 GB, free: 93.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001496/2.814, allocations: 62.91 kB / 1.032 GB, free: 93.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001527/2.814, allocations: 26.67 kB / 1.032 GB, free: 93.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1076/2.922, allocations: 55.75 MB / 1.087 GB, free: 80.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.181e-05/2.922, allocations: 4.25 kB / 1.087 GB, free: 80.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/2.924, allocations: 280.1 kB / 1.087 GB, free: 80.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05579/2.979, allocations: 20.57 MB / 1.107 GB, free: 64.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001722/2.981, allocations: 8 kB / 1.107 GB, free: 64.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4667/3.448, allocations: 124.6 MB / 1.229 GB, free: 94.16 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/3.448, allocations: 0 / 1.229 GB, free: 94.16 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09118/3.539, allocations: 48.01 MB / 1.276 GB, free: 67.83 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006424/3.546, allocations: 2.354 MB / 1.278 GB, free: 65.71 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002733/3.548, allocations: 1.312 kB / 1.278 GB, free: 65.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007604/3.556, allocations: 423.2 kB / 1.278 GB, free: 65.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003537/3.56, allocations: 0.5005 MB / 1.279 GB, free: 65.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001097/3.561, allocations: 144.5 kB / 1.279 GB, free: 65.05 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004526/3.565, allocations: 2.739 MB / 1.282 GB, free: 62.68 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.342e-06/3.565, allocations: 4 kB / 1.282 GB, free: 62.68 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01609/3.581, allocations: 3.059 MB / 1.285 GB, free: 59.63 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 147 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.002011/3.583, allocations: 141 kB / 1.285 GB, free: 59.52 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03857/3.622, allocations: 23.57 MB / 1.308 GB, free: 38.56 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.739e-06/3.622, allocations: 4.75 kB / 1.308 GB, free: 38.55 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0258/3.648, allocations: 13.24 MB / 1.321 GB, free: 25.55 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005919/3.654, allocations: 0.5468 MB / 1.321 GB, free: 25.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3267/3.98, allocations: 20.78 MB / 1.341 GB, free: 95.24 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01187/3.992, allocations: 5.321 MB / 1.347 GB, free: 94.37 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007524/4, allocations: 2.142 MB / 1.349 GB, free: 94.31 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/4.001, allocations: 276.5 kB / 1.349 GB, free: 94.3 MB / 458.7 MB Notification: Performance of SimCode: time 1.142e-06/4.001, allocations: 0 / 1.349 GB, free: 94.3 MB / 458.7 MB Notification: Performance of Templates: time 0.6085/4.61, allocations: 212.2 MB / 1.556 GB, free: 105.7 MB / 474.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches