Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0008012/0.0008012, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0008789/0.000879, allocations: 182 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002751/0.0002751, allocations: 12.73 kB / 301.4 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0895/0.0898, allocations: 50.41 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2371/0.3269, allocations: 54 MB / 405.8 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03034/0.3573, allocations: 11.85 MB / 417.7 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01466/0.3721, allocations: 240.6 kB / 417.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002219/0.3743, allocations: 0.4977 MB / 418.4 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006034/0.3804, allocations: 2.022 MB / 420.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002457/0.3828, allocations: 1.006 MB / 421.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.3941, allocations: 8.678 MB / 430.1 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01182/0.4059, allocations: 7.386 MB / 437.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004487/0.4105, allocations: 1.521 MB / 439 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004877/0.4154, allocations: 2.577 MB / 441.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001351/0.4168, allocations: 184 kB / 441.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003872/0.4207, allocations: 1.412 MB / 443.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003416/0.4241, allocations: 2.213 MB / 445.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004868/0.429, allocations: 2.49 MB / 447.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01234/0.4413, allocations: 8.888 MB / 456.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.4414, allocations: 0 / 456.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4414, allocations: 0 / 456.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004271/0.4418, allocations: 0 / 456.8 MB, free: 11.21 MB / 366.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.01432/0.4562, allocations: 4.925 MB / 461.7 MB, free: 6.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.619e-05/0.4563, allocations: 8.031 kB / 461.7 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01248/0.4688, allocations: 2.591 MB / 464.3 MB, free: 3.605 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009503/0.4783, allocations: 3.753 MB / 468.1 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003419/0.4787, allocations: 304.3 kB / 468.4 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001893/0.4806, allocations: 435.6 kB / 468.8 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02893/0.5095, allocations: 12.44 MB / 481.2 MB, free: 1.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002584/0.5099, allocations: 47.58 kB / 481.3 MB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001485/0.5114, allocations: 187.9 kB / 481.5 MB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003821/0.5152, allocations: 2.035 MB / 483.5 MB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02558/0.5408, allocations: 10.6 MB / 494.1 MB, free: 5.004 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0661/0.6069, allocations: 44.37 MB / 0.5258 GB, free: 7.352 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01396/0.621, allocations: 4.892 MB / 0.5306 GB, free: 2.316 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003327/0.6244, allocations: 2.003 MB / 0.5326 GB, free: 312 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2442/0.8686, allocations: 7.1 MB / 0.5395 GB, free: 148.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.164e-05/0.8687, allocations: 55.66 kB / 0.5396 GB, free: 148.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 6.793e-06/0.8687, allocations: 1.156 kB / 0.5396 GB, free: 148.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.06621/0.9349, allocations: 19.71 MB / 0.5588 GB, free: 142.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/0.935, allocations: 204.8 kB / 0.559 GB, free: 142.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005168/0.9402, allocations: 4.475 MB / 0.5634 GB, free: 140 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000408/0.9406, allocations: 57.02 kB / 0.5634 GB, free: 140 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001559/0.9422, allocations: 3.512 MB / 0.5669 GB, free: 136.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007169/0.9429, allocations: 0.8429 MB / 0.5677 GB, free: 135.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005897/0.9435, allocations: 0.575 MB / 0.5682 GB, free: 135.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.844e-05/0.9435, allocations: 305.1 kB / 0.5685 GB, free: 134.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002883/0.9464, allocations: 2.363 MB / 0.5708 GB, free: 132.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004099/0.9505, allocations: 6.164 MB / 0.5769 GB, free: 124.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008135/0.9587, allocations: 9.169 MB / 0.5858 GB, free: 113.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.57e-05/0.9588, allocations: 40 kB / 0.5859 GB, free: 113.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.0165/0.9754, allocations: 9.549 MB / 0.5952 GB, free: 103.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002053/0.9756, allocations: 64 kB / 0.5952 GB, free: 103.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002662/0.9759, allocations: 132 kB / 0.5954 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004389/0.9803, allocations: 1.375 MB / 0.5967 GB, free: 102.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004536/0.9849, allocations: 1.474 MB / 0.5982 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.995, allocations: 7.972 MB / 0.6059 GB, free: 92.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005239/1, allocations: 356.1 kB / 0.6063 GB, free: 92.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009841/1.001, allocations: 392.7 kB / 0.6067 GB, free: 91.98 MB / 446.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.00434/1.006, allocations: 2.49 MB / 0.6091 GB, free: 89.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008701/1.007, allocations: 398.8 kB / 0.6095 GB, free: 89.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008263/1.015, allocations: 4.122 MB / 0.6135 GB, free: 84.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.229e-05/1.015, allocations: 24 kB / 0.6135 GB, free: 84.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.229e-05/1.015, allocations: 8 kB / 0.6135 GB, free: 84.92 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-05/1.015, allocations: 7.969 kB / 0.6135 GB, free: 84.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01997/1.035, allocations: 10.36 MB / 0.6236 GB, free: 74.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.244e-05/1.035, allocations: 4 kB / 0.6236 GB, free: 74.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/1.037, allocations: 347.4 kB / 0.624 GB, free: 74.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003688/1.04, allocations: 1.162 MB / 0.6251 GB, free: 72.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003166/1.041, allocations: 43.98 kB / 0.6252 GB, free: 72.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008699/1.049, allocations: 6.66 MB / 0.6317 GB, free: 66.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/1.049, allocations: 7.938 kB / 0.6317 GB, free: 66.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01137/1.061, allocations: 6.928 MB / 0.6384 GB, free: 59.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/1.062, allocations: 459.8 kB / 0.6389 GB, free: 58.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/1.063, allocations: 40 kB / 0.6389 GB, free: 58.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002351/1.066, allocations: 111.8 kB / 0.639 GB, free: 58.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004586/1.066, allocations: 152.4 kB / 0.6392 GB, free: 58.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001943/1.066, allocations: 56 kB / 0.6392 GB, free: 58.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005535/1.072, allocations: 2.807 MB / 0.642 GB, free: 55.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.072, allocations: 0 / 0.642 GB, free: 55.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007242/1.079, allocations: 1.215 MB / 0.6431 GB, free: 54.23 MB / 446.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.0008622/1.08, allocations: 241.7 kB / 0.6434 GB, free: 54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008784/1.089, allocations: 5.748 MB / 0.649 GB, free: 48.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.089, allocations: 0 / 0.649 GB, free: 48.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002698/1.092, allocations: 1.867 MB / 0.6508 GB, free: 46.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006702/1.099, allocations: 0.5052 MB / 0.6513 GB, free: 45.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01944/1.118, allocations: 13.66 MB / 0.6646 GB, free: 32.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003649/1.122, allocations: 3.859 MB / 0.6684 GB, free: 28.23 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004735/1.126, allocations: 1.926 MB / 0.6703 GB, free: 26.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007975/1.127, allocations: 271.4 kB / 0.6706 GB, free: 26.04 MB / 446.1 MB Notification: Performance of SimCode: time 8.51e-07/1.127, allocations: 0 / 0.6706 GB, free: 26.04 MB / 446.1 MB Notification: Performance of Templates: time 0.2764/1.404, allocations: 43.47 MB / 0.713 GB, free: 125.1 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches