Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001057/0.001057, allocations: 201.2 kB / 18.11 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.5 MB / 245.4 MB, free: 6.418 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007695/0.0007695, allocations: 95.59 kB / 297.5 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002401/0.0002403, allocations: 4 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2053, allocations: 51.29 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.3281, allocations: 102.1 MB / 0.4995 GB, free: 5.316 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.3283, allocations: 91.94 kB / 0.4996 GB, free: 5.227 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4372/0.7656, allocations: 127.8 MB / 0.6244 GB, free: 2.188 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.109e-06/0.7656, allocations: 0 / 0.6244 GB, free: 2.188 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000404/0.766, allocations: 123.9 kB / 0.6246 GB, free: 2.066 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02134/0.7874, allocations: 6.56 MB / 0.631 GB, free: 11.42 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.7875, allocations: 12.03 kB / 0.631 GB, free: 11.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02721/0.8147, allocations: 6.661 MB / 0.6375 GB, free: 4.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01524/0.83, allocations: 5.66 MB / 0.643 GB, free: 15.01 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005373/0.8305, allocations: 452 kB / 0.6434 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003268/0.8338, allocations: 0.5898 MB / 0.644 GB, free: 13.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0361/0.8699, allocations: 15.6 MB / 0.6592 GB, free: 13.22 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000489/0.8705, allocations: 75.52 kB / 0.6593 GB, free: 13.14 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003279/0.8738, allocations: 287.8 kB / 0.6596 GB, free: 12.86 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002852/0.8767, allocations: 1.62 MB / 0.6612 GB, free: 11.24 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2463/1.123, allocations: 13.8 MB / 0.6746 GB, free: 76.35 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06224/1.185, allocations: 63.95 MB / 0.7371 GB, free: 42.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/1.197, allocations: 6.347 MB / 0.7433 GB, free: 39.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004083/1.201, allocations: 3.503 MB / 0.7467 GB, free: 38.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01778/1.219, allocations: 14.19 MB / 0.7606 GB, free: 31.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/1.219, allocations: 59.75 kB / 0.7606 GB, free: 31.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 5.53e-06/1.219, allocations: 3.562 kB / 0.7606 GB, free: 31.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.1213/1.34, allocations: 41.27 MB / 0.8009 GB, free: 12.62 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.476e-05/1.34, allocations: 210 kB / 0.8011 GB, free: 12.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006808/1.347, allocations: 5.419 MB / 0.8064 GB, free: 7.938 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007111/1.348, allocations: 72.28 kB / 0.8065 GB, free: 7.863 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001939/1.35, allocations: 4.433 MB / 0.8108 GB, free: 3.895 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001238/1.351, allocations: 1.248 MB / 0.812 GB, free: 2.793 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004133/1.351, allocations: 172 kB / 0.8122 GB, free: 2.625 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003394/1.352, allocations: 0.6804 MB / 0.8129 GB, free: 2.043 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0103/1.362, allocations: 4.859 MB / 0.8176 GB, free: 14.75 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01057/1.373, allocations: 9.541 MB / 0.8269 GB, free: 2.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01762/1.39, allocations: 15.14 MB / 0.8417 GB, free: 1.488 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/1.391, allocations: 48 kB / 0.8418 GB, free: 1.441 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.2613/1.652, allocations: 18.68 MB / 0.86 GB, free: 104.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001463/1.652, allocations: 80.62 kB / 0.8601 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002367/1.652, allocations: 173.9 kB / 0.8603 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01914/1.671, allocations: 5.612 MB / 0.8657 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006902/1.678, allocations: 2.048 MB / 0.8677 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02559/1.704, allocations: 23.66 MB / 0.8908 GB, free: 98.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007055/1.711, allocations: 0.5376 MB / 0.8914 GB, free: 98.51 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001516/1.713, allocations: 0.5076 MB / 0.8919 GB, free: 98.44 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * 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 (1060): * Single equations (assignments): 1052 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005562/1.718, allocations: 3.1 MB / 0.8949 GB, free: 97.15 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009551/1.719, allocations: 0.4933 MB / 0.8954 GB, free: 97.15 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02543/1.745, allocations: 12.34 MB / 0.9074 GB, free: 93.19 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.682e-05/1.745, allocations: 56.23 kB / 0.9075 GB, free: 93.19 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.096e-05/1.745, allocations: 7.75 kB / 0.9075 GB, free: 93.19 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-05/1.745, allocations: 27.88 kB / 0.9075 GB, free: 93.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04229/1.787, allocations: 23.93 MB / 0.9309 GB, free: 80.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.281e-05/1.787, allocations: 8 kB / 0.9309 GB, free: 80.22 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002795/1.79, allocations: 0.5677 MB / 0.9314 GB, free: 79.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01603/1.806, allocations: 4.647 MB / 0.936 GB, free: 77.07 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006068/1.807, allocations: 62.77 kB / 0.936 GB, free: 77.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01981/1.827, allocations: 18.95 MB / 0.9545 GB, free: 59.41 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/1.827, allocations: 8 kB / 0.9545 GB, free: 59.41 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02812/1.855, allocations: 16.65 MB / 0.9708 GB, free: 42.79 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001411/1.856, allocations: 0.5379 MB / 0.9713 GB, free: 42.23 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007686/1.857, allocations: 52 kB / 0.9714 GB, free: 42.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00242/1.859, allocations: 246.2 kB / 0.9716 GB, free: 41.95 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006328/1.86, allocations: 191.6 kB / 0.9718 GB, free: 41.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002452/1.86, allocations: 91.89 kB / 0.9719 GB, free: 41.68 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004536/1.865, allocations: 3.35 MB / 0.9752 GB, free: 38.35 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.865, allocations: 4 kB / 0.9752 GB, free: 38.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00662/1.871, allocations: 1.702 MB / 0.9768 GB, free: 36.65 MB / 474.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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005926/1.872, allocations: 229.2 kB / 0.977 GB, free: 36.45 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01449/1.887, allocations: 10.44 MB / 0.9872 GB, free: 26.06 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/1.887, allocations: 4 kB / 0.9872 GB, free: 26.05 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004804/1.891, allocations: 3.95 MB / 0.9911 GB, free: 22.09 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00691/1.898, allocations: 0.6219 MB / 0.9917 GB, free: 21.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02353/1.922, allocations: 18.35 MB / 1.01 GB, free: 3.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2293/2.151, allocations: 4.613 MB / 1.014 GB, free: 109.9 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008099/2.159, allocations: 2.99 MB / 1.017 GB, free: 109.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/2.161, allocations: 347.5 kB / 1.017 GB, free: 109.8 MB / 490.7 MB Notification: Performance of SimCode: time 8.22e-07/2.161, allocations: 2.625 kB / 1.017 GB, free: 109.8 MB / 490.7 MB Notification: Performance of Templates: time 0.1072/2.268, allocations: 73.47 MB / 1.089 GB, free: 96.04 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches