Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_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.PlanarLoops_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.858/1.858, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001182/0.001182, allocations: 94 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.613e-05/1.615e-05, allocations: 4 kB / 343.7 MB, free: 8.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1375, allocations: 51.48 MB / 395.2 MB, free: 4.797 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4581/0.5957, allocations: 109.5 MB / 0.4928 GB, free: 92 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002233/0.596, allocations: 83.7 kB / 0.4929 GB, free: 52 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8706/1.467, allocations: 235.9 MB / 0.7232 GB, free: 17.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.583e-06/1.467, allocations: 0 / 0.7232 GB, free: 17.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008601/1.467, allocations: 235.4 kB / 0.7234 GB, free: 17.43 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.04818/1.516, allocations: 12.36 MB / 0.7355 GB, free: 4.992 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/1.516, allocations: 8.031 kB / 0.7355 GB, free: 4.984 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02345/1.539, allocations: 3.994 MB / 0.7394 GB, free: 0.9688 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6174/2.157, allocations: 10.99 MB / 0.7502 GB, free: 34.79 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006103/2.157, allocations: 391.3 kB / 0.7505 GB, free: 34.79 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006005/2.163, allocations: 0.698 MB / 0.7512 GB, free: 34.77 MB / 442.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03948/2.203, allocations: 21.49 MB / 0.7722 GB, free: 34.71 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06191/2.265, allocations: 26.43 MB / 0.798 GB, free: 29.44 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000648/2.265, allocations: 100.2 kB / 0.7981 GB, free: 29.44 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005467/2.271, allocations: 50.88 kB / 0.7982 GB, free: 29.44 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003342/2.274, allocations: 2.588 MB / 0.8007 GB, free: 28.96 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1697/2.444, allocations: 117 MB / 0.9149 GB, free: 11.29 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01516/2.459, allocations: 10.49 MB / 0.9252 GB, free: 1.5 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3473/2.807, allocations: 10.03 MB / 0.935 GB, free: 94.47 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04291/2.85, allocations: 30.85 MB / 0.9651 GB, free: 86.55 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.179e-05/2.85, allocations: 93.08 kB / 0.9652 GB, free: 86.51 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=483): time 7.504e-06/2.85, allocations: 0 / 0.9652 GB, free: 86.51 MB / 0.4949 GB Notification: Performance of matching and sorting (n=708): time 0.315/3.165, allocations: 114.5 MB / 1.077 GB, free: 43.92 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/3.165, allocations: 200.3 kB / 1.077 GB, free: 43.7 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01593/3.181, allocations: 6.07 MB / 1.083 GB, free: 38.39 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.003337/3.184, allocations: 33.7 kB / 1.083 GB, free: 38.35 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006929/3.191, allocations: 7.196 MB / 1.09 GB, free: 31.86 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.004907/3.196, allocations: 2.433 MB / 1.093 GB, free: 29.65 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002532/3.199, allocations: 1.531 kB / 1.093 GB, free: 29.65 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001049/3.2, allocations: 0.9117 MB / 1.093 GB, free: 28.91 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02174/3.222, allocations: 9.704 MB / 1.103 GB, free: 20.02 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3387/3.56, allocations: 18.03 MB / 1.121 GB, free: 79.54 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02943/3.59, allocations: 14.39 MB / 1.135 GB, free: 79.43 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005165/3.59, allocations: 69.28 kB / 1.135 GB, free: 79.43 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1890) (initialization): time 0.06147/3.652, allocations: 27.29 MB / 1.161 GB, free: 78.91 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007068/3.653, allocations: 118.6 kB / 1.161 GB, free: 78.91 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007142/3.653, allocations: 241.3 kB / 1.162 GB, free: 78.91 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000615/3.654, allocations: 364.6 kB / 1.162 GB, free: 78.91 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02152/3.675, allocations: 4.299 MB / 1.166 GB, free: 78.64 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007162/3.676, allocations: 485.4 kB / 1.167 GB, free: 78.54 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01528/3.691, allocations: 0.9521 MB / 1.168 GB, free: 78.54 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004722/3.696, allocations: 0.7654 MB / 1.168 GB, free: 78.54 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1089 * Number of states: 0 () * Number of discrete variables: 102 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[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 (1860): * Single equations (assignments): 1854 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006511/3.703, allocations: 0.7726 MB / 1.169 GB, free: 78.14 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002944/3.706, allocations: 0.7499 MB / 1.17 GB, free: 78.14 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.029/3.735, allocations: 18.51 MB / 1.188 GB, free: 74.67 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.496e-05/3.735, allocations: 72.31 kB / 1.188 GB, free: 74.67 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.39e-05/3.735, allocations: 0 / 1.188 GB, free: 74.67 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001522/3.735, allocations: 32.86 kB / 1.188 GB, free: 74.67 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07279/3.808, allocations: 38.48 MB / 1.226 GB, free: 57.99 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.586e-05/3.808, allocations: 3.062 kB / 1.226 GB, free: 57.99 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01282/3.821, allocations: 2.118 MB / 1.228 GB, free: 57.88 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001154/3.821, allocations: 22.38 kB / 1.228 GB, free: 57.88 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001837/3.823, allocations: 15.12 kB / 1.228 GB, free: 57.88 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.344e-05/3.823, allocations: 25.27 kB / 1.228 GB, free: 57.88 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/3.823, allocations: 7.531 kB / 1.228 GB, free: 57.88 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04097/3.864, allocations: 31.88 MB / 1.259 GB, free: 34.63 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006808/3.871, allocations: 2.628 MB / 1.261 GB, free: 32.44 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003559/3.874, allocations: 4.625 kB / 1.261 GB, free: 32.44 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009336/3.884, allocations: 0.6507 MB / 1.262 GB, free: 32.1 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002781/3.886, allocations: 374.3 kB / 1.262 GB, free: 31.87 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00198/3.888, allocations: 174.9 kB / 1.263 GB, free: 31.7 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009387/3.898, allocations: 4.03 MB / 1.267 GB, free: 28.21 MB / 0.4949 GB Notification: Performance of sort global known variables: time 4.81e-07/3.898, allocations: 0 / 1.267 GB, free: 28.21 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0172/3.915, allocations: 2.761 MB / 1.269 GB, free: 25.5 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (692): * Single equations (assignments): 689 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003283/3.918, allocations: 302.6 kB / 1.27 GB, free: 25.25 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.03891/3.957, allocations: 22.07 MB / 1.291 GB, free: 4.863 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.766e-05/3.957, allocations: 0 / 1.291 GB, free: 4.863 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.3386/4.296, allocations: 11.42 MB / 1.302 GB, free: 81.82 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004679/4.301, allocations: 0.6243 MB / 1.303 GB, free: 81.79 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05369/4.355, allocations: 28.1 MB / 1.33 GB, free: 78.02 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01507/4.37, allocations: 8.229 MB / 1.338 GB, free: 77.03 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01923/4.389, allocations: 5.146 MB / 1.343 GB, free: 76.95 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006608/4.396, allocations: 0.5771 MB / 1.344 GB, free: 76.94 MB / 0.4949 GB Notification: Performance of SimCode: time 1.373e-06/4.396, allocations: 3.188 kB / 1.344 GB, free: 76.94 MB / 0.4949 GB Notification: Performance of Templates: time 0.1827/4.578, allocations: 108.2 MB / 1.45 GB, free: 26.71 MB / 0.4949 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/PlanarLoops_analytic/PlanarLoops_analytic.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches