Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 180.2 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009115/0.0009112, allocations: 89.73 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002884/0.0002884, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2531, allocations: 50.41 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1145/0.3676, allocations: 95.86 MB / 497.4 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.3679, allocations: 90.36 kB / 497.4 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4777/0.8457, allocations: 124.9 MB / 0.6077 GB, free: 3.941 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.8457, allocations: 0 / 0.6077 GB, free: 3.941 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002777/0.846, allocations: 120 kB / 0.6078 GB, free: 3.824 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02107/0.8671, allocations: 7.069 MB / 0.6147 GB, free: 12.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.968e-05/0.8672, allocations: 8.031 kB / 0.6147 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03579/0.9029, allocations: 9.418 MB / 0.6239 GB, free: 3.223 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02265/0.9256, allocations: 8.129 MB / 0.6319 GB, free: 11.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004508/0.9261, allocations: 435.4 kB / 0.6323 GB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002721/0.9289, allocations: 0.5816 MB / 0.6329 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03246/0.9613, allocations: 14.82 MB / 0.6473 GB, free: 10.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003526/0.9617, allocations: 87.16 kB / 0.6474 GB, free: 9.922 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001742/0.9635, allocations: 271.9 kB / 0.6477 GB, free: 9.656 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002082/0.9656, allocations: 1.439 MB / 0.6491 GB, free: 8.211 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2238/1.189, allocations: 13 MB / 0.6618 GB, free: 68.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06468/1.254, allocations: 64.66 MB / 0.7249 GB, free: 33.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01719/1.271, allocations: 7.878 MB / 0.7326 GB, free: 30.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01858/1.29, allocations: 12.94 MB / 0.7452 GB, free: 25.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/1.29, allocations: 66.25 kB / 0.7453 GB, free: 25.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 5.541e-06/1.29, allocations: 0 / 0.7453 GB, free: 25.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 1.849/3.139, allocations: 266 MB / 1.005 GB, free: 103.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/3.139, allocations: 277.5 kB / 1.005 GB, free: 103.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007409/3.146, allocations: 4.727 MB / 1.01 GB, free: 103 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001871/3.148, allocations: 119 kB / 1.01 GB, free: 102.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002781/3.151, allocations: 4 MB / 1.014 GB, free: 101.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00308/3.154, allocations: 2.118 MB / 1.016 GB, free: 100.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001441/3.156, allocations: 187.7 kB / 1.016 GB, free: 100.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004749/3.156, allocations: 0.7046 MB / 1.017 GB, free: 100.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01246/3.169, allocations: 8.677 MB / 1.025 GB, free: 100.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01553/3.184, allocations: 12.79 MB / 1.038 GB, free: 95.22 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01544/3.2, allocations: 10.59 MB / 1.048 GB, free: 91.46 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002569/3.2, allocations: 37.97 kB / 1.048 GB, free: 91.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.09789/3.298, allocations: 40.33 MB / 1.088 GB, free: 79.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000247/3.298, allocations: 67.72 kB / 1.088 GB, free: 79.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003299/3.299, allocations: 143.7 kB / 1.088 GB, free: 79.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06252/3.361, allocations: 21.55 MB / 1.109 GB, free: 69.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004852/3.366, allocations: 1.435 MB / 1.11 GB, free: 68.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.44/3.806, allocations: 151.1 MB / 1.258 GB, free: 68.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01184/3.818, allocations: 0.7356 MB / 1.259 GB, free: 67.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00302/3.821, allocations: 0.5289 MB / 1.259 GB, free: 67.21 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (775): * Single equations (assignments): 768 * 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,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.009257/3.83, allocations: 3.115 MB / 1.262 GB, free: 64.69 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002421/3.833, allocations: 0.5957 MB / 1.263 GB, free: 64.41 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08005/3.913, allocations: 36.29 MB / 1.298 GB, free: 37.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.993e-05/3.913, allocations: 60 kB / 1.298 GB, free: 37.39 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000142/3.913, allocations: 67.19 kB / 1.298 GB, free: 37.32 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001214/3.913, allocations: 28.75 kB / 1.298 GB, free: 37.32 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3497/4.263, allocations: 57.18 MB / 1.354 GB, free: 99.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.833e-05/4.263, allocations: 3.75 kB / 1.354 GB, free: 99.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/4.265, allocations: 273 kB / 1.354 GB, free: 99.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06009/4.325, allocations: 20.76 MB / 1.375 GB, free: 99.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002056/4.327, allocations: 99.72 kB / 1.375 GB, free: 99.18 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4501/4.777, allocations: 138.9 MB / 1.51 GB, free: 97.83 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/4.777, allocations: 2.203 kB / 1.51 GB, free: 97.83 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08912/4.866, allocations: 48.79 MB / 1.558 GB, free: 96.72 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002089/4.868, allocations: 0.6223 MB / 1.559 GB, free: 96.54 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00301/4.871, allocations: 94.39 kB / 1.559 GB, free: 96.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007036/4.878, allocations: 0.4906 MB / 1.559 GB, free: 96.54 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003571/4.882, allocations: 0.5143 MB / 1.56 GB, free: 96.53 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001365/4.883, allocations: 142.4 kB / 1.56 GB, free: 96.53 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006757/4.89, allocations: 3.382 MB / 1.563 GB, free: 96.35 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.31e-07/4.89, allocations: 0 / 1.563 GB, free: 96.35 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01876/4.909, allocations: 3.441 MB / 1.567 GB, free: 96.35 MB / 490.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * 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.001892/4.911, allocations: 238.8 kB / 1.567 GB, free: 96.26 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03807/4.949, allocations: 24.52 MB / 1.591 GB, free: 89.33 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/4.949, allocations: 1.906 kB / 1.591 GB, free: 89.33 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02572/4.975, allocations: 13.8 MB / 1.604 GB, free: 80.02 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006046/4.981, allocations: 0.6974 MB / 1.605 GB, free: 79.43 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04302/5.024, allocations: 26.46 MB / 1.631 GB, free: 55.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01146/5.035, allocations: 5.306 MB / 1.636 GB, free: 51.93 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006257/5.042, allocations: 2.088 MB / 1.638 GB, free: 50.69 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/5.043, allocations: 302.4 kB / 1.638 GB, free: 50.41 MB / 490.7 MB Notification: Performance of SimCode: time 1.242e-06/5.043, allocations: 0 / 1.638 GB, free: 50.41 MB / 490.7 MB Notification: Performance of Templates: time 0.5265/5.569, allocations: 223.3 MB / 1.856 GB, free: 0.7656 MB / 0.4948 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches