Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002357/0.002357, allocations: 199.3 kB / 18.07 MB, free: 3.523 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 226.5 MB / 245.3 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000825/0.0008249, allocations: 92 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003126/0.0003127, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3187, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1873/0.506, allocations: 105.9 MB / 0.5025 GB, free: 1.637 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003812/0.5065, allocations: 87.95 kB / 0.5026 GB, free: 1.551 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5048/1.011, allocations: 112.3 MB / 0.6123 GB, free: 14.84 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.767e-06/1.011, allocations: 0 / 0.6123 GB, free: 14.84 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000405/1.012, allocations: 100 kB / 0.6124 GB, free: 14.74 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01979/1.032, allocations: 5.269 MB / 0.6175 GB, free: 9.395 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/1.032, allocations: 16.03 kB / 0.6175 GB, free: 9.379 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03809/1.07, allocations: 5.243 MB / 0.6226 GB, free: 4.121 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01909/1.089, allocations: 5.149 MB / 0.6277 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006605/1.09, allocations: 390.7 kB / 0.628 GB, free: 14.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003105/1.093, allocations: 0.5118 MB / 0.6285 GB, free: 14.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04293/1.136, allocations: 12.52 MB / 0.6408 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000452/1.136, allocations: 59.41 kB / 0.6408 GB, free: 484 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00246/1.139, allocations: 243.9 kB / 0.641 GB, free: 240 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00239/1.141, allocations: 1.051 MB / 0.6421 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03594/1.177, allocations: 10.36 MB / 0.6522 GB, free: 4.809 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3393/1.517, allocations: 50.09 MB / 0.7011 GB, free: 55.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01758/1.534, allocations: 4.795 MB / 0.7058 GB, free: 55.31 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003489/1.538, allocations: 1.903 MB / 0.7076 GB, free: 55.27 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01424/1.552, allocations: 6.95 MB / 0.7144 GB, free: 53.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.142e-05/1.552, allocations: 50.84 kB / 0.7145 GB, free: 53.22 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 6.292e-06/1.552, allocations: 3.656 kB / 0.7145 GB, free: 53.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=224): time 0.09717/1.649, allocations: 20 MB / 0.734 GB, free: 50.17 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/1.649, allocations: 203.5 kB / 0.7342 GB, free: 49.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006602/1.656, allocations: 4.407 MB / 0.7385 GB, free: 49.55 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000445/1.656, allocations: 58.45 kB / 0.7386 GB, free: 49.52 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002194/1.659, allocations: 3.565 MB / 0.7421 GB, free: 47.77 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009203/1.66, allocations: 0.8412 MB / 0.7429 GB, free: 47.28 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003542/1.66, allocations: 128.6 kB / 0.743 GB, free: 47.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002985/1.66, allocations: 0.5805 MB / 0.7436 GB, free: 46.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003516/1.664, allocations: 2.159 MB / 0.7457 GB, free: 46.95 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005808/1.67, allocations: 5.941 MB / 0.7515 GB, free: 41.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009619/1.679, allocations: 8.829 MB / 0.7601 GB, free: 34.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001308/1.679, allocations: 43.38 kB / 0.7601 GB, free: 34.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.01633/1.696, allocations: 8.792 MB / 0.7687 GB, free: 31.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.369e-05/1.696, allocations: 59.75 kB / 0.7688 GB, free: 31.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001357/1.696, allocations: 132.3 kB / 0.7689 GB, free: 31.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002892/1.699, allocations: 1.024 MB / 0.7699 GB, free: 31.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004694/1.704, allocations: 1.422 MB / 0.7713 GB, free: 30.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008459/1.712, allocations: 6.94 MB / 0.7781 GB, free: 25.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005098/1.717, allocations: 337.4 kB / 0.7784 GB, free: 24.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001121/1.719, allocations: 386.2 kB / 0.7788 GB, free: 24.51 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (771): * Single equations (assignments): 767 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005047/1.724, allocations: 2.484 MB / 0.7812 GB, free: 22.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008284/1.724, allocations: 406.3 kB / 0.7816 GB, free: 21.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006707/1.731, allocations: 3.656 MB / 0.7851 GB, free: 18.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.86e-05/1.731, allocations: 27.89 kB / 0.7852 GB, free: 18.92 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/1.731, allocations: 4 kB / 0.7852 GB, free: 18.92 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-05/1.731, allocations: 13.52 kB / 0.7852 GB, free: 18.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01803/1.749, allocations: 9.864 MB / 0.7948 GB, free: 10.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.378e-05/1.749, allocations: 6.906 kB / 0.7948 GB, free: 10.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/1.751, allocations: 364 kB / 0.7952 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002569/1.753, allocations: 0.7999 MB / 0.796 GB, free: 9.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003047/1.754, allocations: 49.98 kB / 0.796 GB, free: 9.887 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007015/1.761, allocations: 5.646 MB / 0.8015 GB, free: 4.871 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/1.761, allocations: 7.938 kB / 0.8015 GB, free: 4.863 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/1.774, allocations: 6.581 MB / 0.808 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001905/1.776, allocations: 452.7 kB / 0.8084 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001056/1.777, allocations: 43.94 kB / 0.8084 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002047/1.779, allocations: 100.8 kB / 0.8085 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004398/1.779, allocations: 141.4 kB / 0.8087 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001664/1.779, allocations: 68 kB / 0.8087 GB, free: 15.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006058/1.785, allocations: 2.762 MB / 0.8114 GB, free: 12.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.924e-06/1.785, allocations: 0 / 0.8114 GB, free: 12.95 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008726/1.794, allocations: 1.191 MB / 0.8126 GB, free: 11.79 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001039/1.795, allocations: 223.9 kB / 0.8128 GB, free: 11.58 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0104/1.806, allocations: 5.407 MB / 0.8181 GB, free: 6.801 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/1.806, allocations: 0 / 0.8181 GB, free: 6.801 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003017/1.809, allocations: 1.808 MB / 0.8198 GB, free: 5.188 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007071/1.816, allocations: 0.5354 MB / 0.8204 GB, free: 4.727 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02507/1.841, allocations: 13.57 MB / 0.8336 GB, free: 8.219 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005606/1.847, allocations: 3.867 MB / 0.8374 GB, free: 4.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/1.848, allocations: 319.4 kB / 0.8377 GB, free: 4.027 MB / 474.7 MB Notification: Performance of SimCode: time 6.32e-07/1.848, allocations: 0 / 0.8377 GB, free: 4.027 MB / 474.7 MB Notification: Performance of Templates: time 0.3402/2.188, allocations: 89.44 MB / 0.925 GB, free: 77.31 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches