Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001193/0.001193, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.711/1.711, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001183/0.001183, allocations: 82.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.683e-05/1.683e-05, allocations: 4 kB / 315.5 MB, free: 22.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09869/0.09872, allocations: 47.59 MB / 363.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3841/0.4829, allocations: 102.9 MB / 466 MB, free: 9.055 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003298/0.4833, allocations: 89.52 kB / 466.1 MB, free: 9.012 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4918/0.9751, allocations: 108.8 MB / 0.5615 GB, free: 94.08 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.9752, allocations: 0 / 0.5615 GB, free: 94.08 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002032/0.9754, allocations: 108.1 kB / 0.5616 GB, free: 94.07 MB / 410.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.01269/0.9881, allocations: 4.927 MB / 0.5664 GB, free: 92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.9882, allocations: 11.22 kB / 0.5664 GB, free: 92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02536/1.014, allocations: 6.9 MB / 0.5731 GB, free: 91.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01595/1.03, allocations: 6.762 MB / 0.5797 GB, free: 90.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/1.03, allocations: 169.3 kB / 0.5799 GB, free: 90.88 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00208/1.032, allocations: 320.5 kB / 0.5802 GB, free: 90.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01152/1.043, allocations: 7.495 MB / 0.5875 GB, free: 88.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01766/1.061, allocations: 10.65 MB / 0.5979 GB, free: 83.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001721/1.061, allocations: 63.02 kB / 0.598 GB, free: 83.01 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005722/1.062, allocations: 28 kB / 0.598 GB, free: 82.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001146/1.063, allocations: 1.042 MB / 0.599 GB, free: 82.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04468/1.108, allocations: 48.49 MB / 0.6464 GB, free: 34.93 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003501/1.111, allocations: 3.142 MB / 0.6494 GB, free: 31.65 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/1.113, allocations: 1.796 MB / 0.6512 GB, free: 29.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009863/1.114, allocations: 1.215 MB / 0.6524 GB, free: 28.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/1.114, allocations: 51.88 kB / 0.6524 GB, free: 28.38 MB / 410.7 MB Notification: Performance of pre-optimization done (n=185): time 5.37e-06/1.114, allocations: 0 / 0.6524 GB, free: 28.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=233): time 0.03735/1.151, allocations: 16.18 MB / 0.6682 GB, free: 12.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.735e-05/1.152, allocations: 201.9 kB / 0.6684 GB, free: 11.94 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004714/1.156, allocations: 3.475 MB / 0.6718 GB, free: 8.441 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003681/1.157, allocations: 29.7 kB / 0.6719 GB, free: 8.406 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/1.158, allocations: 3.624 MB / 0.6754 GB, free: 4.734 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006654/1.159, allocations: 0.8363 MB / 0.6762 GB, free: 3.887 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/1.159, allocations: 4 kB / 0.6762 GB, free: 3.883 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002575/1.159, allocations: 0.587 MB / 0.6768 GB, free: 3.289 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002279/1.162, allocations: 2.051 MB / 0.6788 GB, free: 1.234 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005865/1.168, allocations: 5.916 MB / 0.6846 GB, free: 9.383 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00531/1.173, allocations: 3.475 MB / 0.688 GB, free: 5.906 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.258e-05/1.173, allocations: 40 kB / 0.688 GB, free: 5.867 MB / 426.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.2698/1.443, allocations: 7.993 MB / 0.6958 GB, free: 90.63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001796/1.443, allocations: 64.25 kB / 0.6959 GB, free: 90.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003782/1.443, allocations: 137.9 kB / 0.696 GB, free: 90.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004137/1.448, allocations: 1.027 MB / 0.697 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00613/1.454, allocations: 1.478 MB / 0.6984 GB, free: 90.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/1.464, allocations: 6.52 MB / 0.7048 GB, free: 89.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005538/1.47, allocations: 217.7 kB / 0.705 GB, free: 89.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001654/1.471, allocations: 398.3 kB / 0.7054 GB, free: 89.33 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * 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.001298/1.473, allocations: 460 kB / 0.7058 GB, free: 89.22 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009141/1.473, allocations: 389 kB / 0.7062 GB, free: 89.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007259/1.481, allocations: 3.449 MB / 0.7096 GB, free: 89.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.3e-05/1.481, allocations: 24.06 kB / 0.7096 GB, free: 89.06 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-05/1.481, allocations: 9.75 kB / 0.7096 GB, free: 89.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.851e-05/1.481, allocations: 17.77 kB / 0.7096 GB, free: 89.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01924/1.5, allocations: 8.928 MB / 0.7183 GB, free: 88.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/1.5, allocations: 11.78 kB / 0.7183 GB, free: 88.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001659/1.502, allocations: 375.7 kB / 0.7187 GB, free: 88.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00258/1.504, allocations: 0.7846 MB / 0.7195 GB, free: 88.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002316/1.505, allocations: 13.77 kB / 0.7195 GB, free: 88.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006573/1.511, allocations: 5.254 MB / 0.7246 GB, free: 86.28 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/1.511, allocations: 10.25 kB / 0.7246 GB, free: 86.28 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009695/1.521, allocations: 6.902 MB / 0.7314 GB, free: 82.81 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002329/1.523, allocations: 0.6986 MB / 0.7321 GB, free: 82.47 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006896/1.524, allocations: 10.19 kB / 0.7321 GB, free: 82.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0016/1.526, allocations: 65.48 kB / 0.7321 GB, free: 82.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003892/1.526, allocations: 156.2 kB / 0.7323 GB, free: 82.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/1.526, allocations: 64.98 kB / 0.7323 GB, free: 82.43 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004623/1.531, allocations: 2.354 MB / 0.7346 GB, free: 81.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.6e-07/1.531, allocations: 3.969 kB / 0.7346 GB, free: 81.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008025/1.539, allocations: 1.021 MB / 0.7356 GB, free: 81.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (185): * Single equations (assignments): 181 * 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.0007502/1.54, allocations: 197.2 kB / 0.7358 GB, free: 81.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008053/1.548, allocations: 5.098 MB / 0.7408 GB, free: 79.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/1.548, allocations: 2.906 kB / 0.7408 GB, free: 79.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002214/1.55, allocations: 1.739 MB / 0.7425 GB, free: 79.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002914/1.553, allocations: 446.1 kB / 0.7429 GB, free: 78.89 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/1.571, allocations: 8.962 MB / 0.7517 GB, free: 75.51 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004622/1.575, allocations: 3.984 MB / 0.7556 GB, free: 74.06 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005328/1.581, allocations: 2.031 MB / 0.7576 GB, free: 74.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008115/1.581, allocations: 264.4 kB / 0.7578 GB, free: 74.01 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/1.581, allocations: 0 / 0.7578 GB, free: 74.01 MB / 426.7 MB Notification: Performance of Templates: time 0.06822/1.65, allocations: 37.46 MB / 0.7944 GB, free: 50.62 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches