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.001568/0.001575, allocations: 105.4 kB / 17.73 MB, free: 5.367 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.001792/0.001792, allocations: 188.1 kB / 18.66 MB, free: 4.441 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.513/1.513, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001338/0.001338, allocations: 55.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09905/0.1004, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2605/0.3609, allocations: 13.53 MB / 388.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01467/0.3757, allocations: 4.859 MB / 393.5 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006397/0.3822, allocations: 90.44 kB / 393.6 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009923/0.3922, allocations: 4.187 MB / 397.8 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009417/0.4017, allocations: 2.143 MB / 399.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003973/0.4056, allocations: 1.11 MB / 401.1 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01265/0.4183, allocations: 5.637 MB / 406.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01169/0.43, allocations: 5.308 MB / 412 MB, free: 9.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006073/0.4362, allocations: 2.159 MB / 414.2 MB, free: 8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005966/0.4422, allocations: 2.886 MB / 417 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002094/0.4443, allocations: 0.4922 MB / 417.5 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004843/0.4492, allocations: 1.631 MB / 419.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004909/0.4541, allocations: 2.627 MB / 421.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006259/0.4604, allocations: 2.895 MB / 424.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0164/0.4768, allocations: 9.544 MB / 434.2 MB, free: 4.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.337e-06/0.4769, allocations: 4 kB / 434.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.4769, allocations: 0 / 434.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003704/0.4773, allocations: 7.938 kB / 434.2 MB, free: 4.305 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.02539/0.5027, allocations: 6.033 MB / 440.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.171e-05/0.5028, allocations: 8.031 kB / 440.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02125/0.5241, allocations: 2.54 MB / 442.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01621/0.5403, allocations: 3.913 MB / 446.7 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005464/0.5409, allocations: 304.5 kB / 447 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003173/0.5442, allocations: 451.5 kB / 447.5 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03668/0.5809, allocations: 12.4 MB / 459.9 MB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005228/0.5815, allocations: 51.5 kB / 459.9 MB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002805/0.5843, allocations: 195.8 kB / 460.1 MB, free: 9.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00563/0.59, allocations: 2.043 MB / 462.2 MB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04046/0.6305, allocations: 10.55 MB / 472.7 MB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07177/0.7023, allocations: 44.14 MB / 0.5047 GB, free: 15.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01297/0.7153, allocations: 4.834 MB / 0.5095 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002998/0.7183, allocations: 2.014 MB / 0.5114 GB, free: 8.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01361/0.732, allocations: 7.117 MB / 0.5184 GB, free: 1.133 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.818e-05/0.7322, allocations: 59.5 kB / 0.5184 GB, free: 1.066 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 8.316e-06/0.7322, allocations: 0 / 0.5184 GB, free: 1.066 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.07293/0.8051, allocations: 19.65 MB / 0.5376 GB, free: 13.36 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000183/0.8054, allocations: 213.8 kB / 0.5378 GB, free: 13.11 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0103/0.8157, allocations: 4.489 MB / 0.5422 GB, free: 8.598 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000578/0.8163, allocations: 61.7 kB / 0.5423 GB, free: 8.531 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003439/0.8198, allocations: 3.517 MB / 0.5457 GB, free: 4.965 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001791/0.8216, allocations: 0.8483 MB / 0.5465 GB, free: 4.105 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004352/0.826, allocations: 1.333 MB / 0.5478 GB, free: 2.762 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.8261, allocations: 301.1 kB / 0.5481 GB, free: 2.465 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003658/0.8298, allocations: 2.363 MB / 0.5504 GB, free: 100 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3133/1.143, allocations: 6.166 MB / 0.5564 GB, free: 143.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01288/1.156, allocations: 9.17 MB / 0.5654 GB, free: 136 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002961/1.156, allocations: 38.44 kB / 0.5654 GB, free: 136 MB / 478.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.0243/1.181, allocations: 9.547 MB / 0.5748 GB, free: 132.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001556/1.181, allocations: 61.81 kB / 0.5748 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002745/1.181, allocations: 134 kB / 0.5749 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00469/1.186, allocations: 1.374 MB / 0.5763 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005523/1.191, allocations: 1.472 MB / 0.5777 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/1.202, allocations: 8.485 MB / 0.586 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006382/1.209, allocations: 341.4 kB / 0.5863 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001565/1.211, allocations: 395.6 kB / 0.5867 GB, free: 127.8 MB / 478.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.005312/1.216, allocations: 2.495 MB / 0.5891 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.217, allocations: 403.5 kB / 0.5895 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007654/1.225, allocations: 4.114 MB / 0.5936 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.926e-05/1.225, allocations: 23.31 kB / 0.5936 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/1.225, allocations: 7.125 kB / 0.5936 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.155e-05/1.225, allocations: 17.8 kB / 0.5936 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/1.242, allocations: 10.13 MB / 0.6035 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.001e-05/1.242, allocations: 4 kB / 0.6035 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/1.243, allocations: 327.5 kB / 0.6038 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003326/1.247, allocations: 1.152 MB / 0.6049 GB, free: 115.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002222/1.247, allocations: 43.94 kB / 0.605 GB, free: 115.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008097/1.255, allocations: 7.15 MB / 0.612 GB, free: 108 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/1.255, allocations: 7.938 kB / 0.612 GB, free: 108 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/1.265, allocations: 6.907 MB / 0.6187 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001957/1.267, allocations: 0.7262 MB / 0.6194 GB, free: 100.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006848/1.268, allocations: 44 kB / 0.6195 GB, free: 100.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/1.27, allocations: 111.9 kB / 0.6196 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003575/1.27, allocations: 147.4 kB / 0.6197 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/1.27, allocations: 69.67 kB / 0.6198 GB, free: 100 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003748/1.274, allocations: 2.815 MB / 0.6225 GB, free: 97.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.274, allocations: 0 / 0.6225 GB, free: 97.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00656/1.281, allocations: 1.225 MB / 0.6237 GB, free: 95.98 MB / 478.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.0006333/1.281, allocations: 228 kB / 0.6239 GB, free: 95.76 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008376/1.29, allocations: 5.767 MB / 0.6296 GB, free: 90.02 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.29, allocations: 0 / 0.6296 GB, free: 90.02 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002331/1.292, allocations: 1.872 MB / 0.6314 GB, free: 88.14 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003612/1.296, allocations: 0.5351 MB / 0.6319 GB, free: 87.62 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/1.313, allocations: 11.08 MB / 0.6427 GB, free: 76.46 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00363/1.317, allocations: 3.877 MB / 0.6465 GB, free: 72.56 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003965/1.321, allocations: 1.937 MB / 0.6484 GB, free: 70.61 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006722/1.322, allocations: 271.4 kB / 0.6487 GB, free: 70.35 MB / 478.1 MB Notification: Performance of SimCode: time 7.21e-07/1.322, allocations: 4 kB / 0.6487 GB, free: 70.34 MB / 478.1 MB Notification: Performance of Templates: time 0.06855/1.39, allocations: 42.22 MB / 0.6899 GB, free: 28.16 MB / 478.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/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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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