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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 114.5 kB / 17.93 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 189.9 kB / 18.86 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 205.1 MB / 224.7 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 55.91 kB / 280.8 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.119, allocations: 46.63 MB / 327.4 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2679/0.3869, allocations: 55.46 MB / 382.9 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02858/0.4155, allocations: 11.81 MB / 394.7 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01505/0.4307, allocations: 241.6 kB / 394.9 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007417/0.4381, allocations: 4.054 MB / 399 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006221/0.4444, allocations: 2 MB / 401 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002802/0.4472, allocations: 1.042 MB / 402 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008144/0.4554, allocations: 5.864 MB / 407.9 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00659/0.462, allocations: 5.599 MB / 413.5 MB, free: 496 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004346/0.4664, allocations: 2.213 MB / 415.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005059/0.4715, allocations: 3.185 MB / 418.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001627/0.4731, allocations: 0.4922 MB / 419.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003778/0.4769, allocations: 1.638 MB / 421 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003061/0.48, allocations: 2.612 MB / 423.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003596/0.4836, allocations: 2.933 MB / 426.6 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008224/0.4919, allocations: 7.685 MB / 434.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.01e-05/0.4919, allocations: 7.938 kB / 434.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4919, allocations: 3.938 kB / 434.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002669/0.4922, allocations: 0 / 434.3 MB, free: 14.49 MB / 350.1 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.01463/0.5068, allocations: 6.029 MB / 440.3 MB, free: 8.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.5069, allocations: 8.031 kB / 440.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/0.518, allocations: 2.536 MB / 442.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008149/0.5262, allocations: 3.851 MB / 446.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002468/0.5265, allocations: 308.8 kB / 447 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001577/0.528, allocations: 439 kB / 447.4 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02276/0.5508, allocations: 12.41 MB / 459.8 MB, free: 4.367 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001654/0.551, allocations: 55.5 kB / 459.9 MB, free: 4.312 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005782/0.5516, allocations: 190.4 kB / 460.1 MB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002936/0.5546, allocations: 2.033 MB / 462.1 MB, free: 2.133 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02141/0.576, allocations: 10.56 MB / 472.7 MB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05877/0.6348, allocations: 44.37 MB / 0.5049 GB, free: 10.15 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/0.6475, allocations: 4.842 MB / 0.5096 GB, free: 5.164 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002741/0.6503, allocations: 2.011 MB / 0.5116 GB, free: 3.148 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.6617, allocations: 7.116 MB / 0.5186 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.6618, allocations: 55.5 kB / 0.5186 GB, free: 11.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.7e-06/0.6618, allocations: 0 / 0.5186 GB, free: 11.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.0717/0.7335, allocations: 19.65 MB / 0.5378 GB, free: 8.043 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.7337, allocations: 209.8 kB / 0.538 GB, free: 7.793 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009268/0.743, allocations: 4.489 MB / 0.5424 GB, free: 3.285 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005627/0.7436, allocations: 57.7 kB / 0.5424 GB, free: 3.223 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1972/0.9408, allocations: 3.512 MB / 0.5459 GB, free: 179.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001144/0.942, allocations: 0.8409 MB / 0.5467 GB, free: 179.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002302/0.9443, allocations: 1.34 MB / 0.548 GB, free: 179.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.432e-05/0.9444, allocations: 301.8 kB / 0.5483 GB, free: 178.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003988/0.9484, allocations: 2.363 MB / 0.5506 GB, free: 178.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006032/0.9544, allocations: 6.165 MB / 0.5566 GB, free: 172.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/0.9645, allocations: 9.168 MB / 0.5656 GB, free: 165 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002525/0.9648, allocations: 37.97 kB / 0.5656 GB, free: 165 MB / 462.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01917/0.984, allocations: 9.555 MB / 0.5749 GB, free: 161.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000262/0.9843, allocations: 68.78 kB / 0.575 GB, free: 161.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003004/0.9846, allocations: 130.6 kB / 0.5751 GB, free: 161.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004438/0.9891, allocations: 1.381 MB / 0.5765 GB, free: 161.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005007/0.9941, allocations: 1.468 MB / 0.5779 GB, free: 161.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/1.005, allocations: 8.513 MB / 0.5862 GB, free: 154.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005357/1.01, allocations: 352.8 kB / 0.5866 GB, free: 154.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/1.012, allocations: 384.8 kB / 0.5869 GB, free: 153.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * 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 (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004581/1.016, allocations: 2.499 MB / 0.5894 GB, free: 151.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009107/1.017, allocations: 394.8 kB / 0.5897 GB, free: 151.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008063/1.025, allocations: 4.129 MB / 0.5938 GB, free: 147.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-05/1.025, allocations: 24 kB / 0.5938 GB, free: 147.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.13e-05/1.025, allocations: 8 kB / 0.5938 GB, free: 147.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.468e-05/1.025, allocations: 7.969 kB / 0.5938 GB, free: 147.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01973/1.045, allocations: 10.37 MB / 0.6039 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.581e-05/1.045, allocations: 4 kB / 0.6039 GB, free: 136.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/1.047, allocations: 354.9 kB / 0.6043 GB, free: 136.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003494/1.05, allocations: 1.149 MB / 0.6054 GB, free: 135.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003679/1.051, allocations: 40 kB / 0.6054 GB, free: 135.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008572/1.059, allocations: 7.136 MB / 0.6124 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/1.059, allocations: 7.938 kB / 0.6124 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/1.07, allocations: 6.912 MB / 0.6192 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/1.072, allocations: 0.7349 MB / 0.6199 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/1.073, allocations: 55.17 kB / 0.6199 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002181/1.075, allocations: 107.9 kB / 0.62 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004596/1.075, allocations: 137 kB / 0.6202 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002028/1.076, allocations: 75.92 kB / 0.6202 GB, free: 119.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004712/1.08, allocations: 2.815 MB / 0.623 GB, free: 117 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/1.08, allocations: 0 / 0.623 GB, free: 117 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006311/1.087, allocations: 1.225 MB / 0.6242 GB, free: 115.8 MB / 462.1 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008015/1.087, allocations: 224.1 kB / 0.6244 GB, free: 115.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0121/1.1, allocations: 6.868 MB / 0.6311 GB, free: 108.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/1.1, allocations: 0 / 0.6311 GB, free: 108.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002597/1.102, allocations: 1.871 MB / 0.6329 GB, free: 106.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00409/1.106, allocations: 0.5287 MB / 0.6334 GB, free: 106.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02051/1.127, allocations: 14.08 MB / 0.6472 GB, free: 92.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005374/1.132, allocations: 3.852 MB / 0.651 GB, free: 88.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/1.134, allocations: 319.4 kB / 0.6513 GB, free: 88.01 MB / 462.1 MB Notification: Performance of SimCode: time 9.81e-07/1.134, allocations: 1.422 kB / 0.6513 GB, free: 88.01 MB / 462.1 MB Notification: Performance of Templates: time 0.3154/1.449, allocations: 90.4 MB / 0.7395 GB, free: 160.8 MB / 462.1 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/jenkins1/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