Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009601/0.0009602, allocations: 200 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 226.5 MB / 245.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007875/0.0007878, allocations: 95.34 kB / 297.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002989/0.0002991, allocations: 8 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2939, allocations: 51.3 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1138/0.4077, allocations: 96.54 MB / 0.4941 GB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/0.408, allocations: 96.69 kB / 0.4942 GB, free: 10.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5/0.908, allocations: 124.9 MB / 0.6161 GB, free: 10.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.908, allocations: 3.938 kB / 0.6161 GB, free: 10.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005552/0.9086, allocations: 120 kB / 0.6162 GB, free: 10.47 MB / 394.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.03012/0.9387, allocations: 6.831 MB / 0.6229 GB, free: 3.551 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/0.9388, allocations: 8.031 kB / 0.6229 GB, free: 3.543 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04959/0.9884, allocations: 7.047 MB / 0.6298 GB, free: 12.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02536/1.014, allocations: 6.619 MB / 0.6362 GB, free: 5.777 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007872/1.015, allocations: 435.8 kB / 0.6367 GB, free: 5.352 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003857/1.019, allocations: 0.5742 MB / 0.6372 GB, free: 4.777 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05262/1.071, allocations: 14.66 MB / 0.6515 GB, free: 4.938 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006212/1.072, allocations: 87.34 kB / 0.6516 GB, free: 4.852 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003242/1.075, allocations: 279.8 kB / 0.6519 GB, free: 4.578 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003731/1.079, allocations: 1.439 MB / 0.6533 GB, free: 3.133 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03166/1.111, allocations: 12.79 MB / 0.6658 GB, free: 6.312 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.282/1.393, allocations: 64.62 MB / 0.7289 GB, free: 41.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01661/1.409, allocations: 7.529 MB / 0.7362 GB, free: 40.35 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005706/1.415, allocations: 5.193 MB / 0.7413 GB, free: 40.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02052/1.436, allocations: 12.89 MB / 0.7539 GB, free: 34.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/1.436, allocations: 73.39 kB / 0.754 GB, free: 34.75 MB / 442.7 MB Notification: Performance of pre-optimization done (n=340): time 6.423e-06/1.436, allocations: 0 / 0.754 GB, free: 34.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=604): time 1.453/2.889, allocations: 264.1 MB / 1.012 GB, free: 11.91 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/2.889, allocations: 265.9 kB / 1.012 GB, free: 11.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2505/3.14, allocations: 5.326 MB / 1.017 GB, free: 102.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001618/3.141, allocations: 117.2 kB / 1.017 GB, free: 102.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002498/3.144, allocations: 4.008 MB / 1.021 GB, free: 101.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002564/3.146, allocations: 2.118 MB / 1.023 GB, free: 100 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009786/3.147, allocations: 187 kB / 1.024 GB, free: 100 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003875/3.148, allocations: 0.7155 MB / 1.024 GB, free: 99.69 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01262/3.16, allocations: 8.675 MB / 1.033 GB, free: 99.67 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0163/3.177, allocations: 12.82 MB / 1.045 GB, free: 94.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02826/3.205, allocations: 22.88 MB / 1.068 GB, free: 82.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001741/3.205, allocations: 37 kB / 1.068 GB, free: 82.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.08301/3.288, allocations: 40.36 MB / 1.107 GB, free: 68.28 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.363e-05/3.288, allocations: 64 kB / 1.107 GB, free: 68.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001222/3.289, allocations: 136 kB / 1.107 GB, free: 68.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05699/3.346, allocations: 21.53 MB / 1.128 GB, free: 53.12 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004541/3.35, allocations: 1.44 MB / 1.13 GB, free: 51.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4283/3.779, allocations: 144.8 MB / 1.271 GB, free: 63.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01015/3.789, allocations: 0.7229 MB / 1.272 GB, free: 62.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002436/3.791, allocations: 0.5321 MB / 1.272 GB, free: 62.87 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.008317/3.8, allocations: 3.117 MB / 1.275 GB, free: 60.56 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002122/3.802, allocations: 0.5929 MB / 1.276 GB, free: 60.23 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07312/3.875, allocations: 36.33 MB / 1.311 GB, free: 33.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-05/3.875, allocations: 62.97 kB / 1.312 GB, free: 33.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001627/3.875, allocations: 64 kB / 1.312 GB, free: 33.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001278/3.875, allocations: 27.05 kB / 1.312 GB, free: 33.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3548/4.23, allocations: 57.2 MB / 1.367 GB, free: 91.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.265e-05/4.23, allocations: 3.938 kB / 1.367 GB, free: 91.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/4.232, allocations: 272.6 kB / 1.368 GB, free: 91.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0549/4.287, allocations: 20.76 MB / 1.388 GB, free: 91 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001674/4.288, allocations: 103.7 kB / 1.388 GB, free: 91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1837/4.472, allocations: 132.6 MB / 1.518 GB, free: 18.98 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/4.472, allocations: 4 kB / 1.518 GB, free: 18.97 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3403/4.812, allocations: 48.73 MB / 1.565 GB, free: 91.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/4.814, allocations: 0.611 MB / 1.566 GB, free: 91.34 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002754/4.817, allocations: 101.4 kB / 1.566 GB, free: 91.34 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007305/4.824, allocations: 0.5001 MB / 1.566 GB, free: 91.34 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004295/4.829, allocations: 0.5033 MB / 1.567 GB, free: 91.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001205/4.83, allocations: 145.8 kB / 1.567 GB, free: 91.33 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006064/4.836, allocations: 3.383 MB / 1.57 GB, free: 91.15 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.6e-07/4.836, allocations: 2.781 kB / 1.57 GB, free: 91.15 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01444/4.85, allocations: 3.436 MB / 1.574 GB, free: 91.15 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.001958/4.852, allocations: 248.8 kB / 1.574 GB, free: 91.06 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.06153/4.914, allocations: 24.52 MB / 1.598 GB, free: 88.34 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/4.914, allocations: 0 / 1.598 GB, free: 88.34 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04125/4.955, allocations: 13.8 MB / 1.611 GB, free: 82.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01127/4.967, allocations: 0.7926 MB / 1.612 GB, free: 81.99 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06367/5.03, allocations: 26.44 MB / 1.638 GB, free: 62.69 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01373/5.044, allocations: 5.158 MB / 1.643 GB, free: 58.79 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01026/5.054, allocations: 2.089 MB / 1.645 GB, free: 57.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/5.056, allocations: 302.9 kB / 1.645 GB, free: 57.29 MB / 490.7 MB Notification: Performance of SimCode: time 1.022e-06/5.056, allocations: 0 / 1.645 GB, free: 57.29 MB / 490.7 MB Notification: Performance of Templates: time 0.5795/5.636, allocations: 223.5 MB / 1.863 GB, free: 10.27 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches