Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00154/0.001539, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002086/0.002086, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 58.84 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09298, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2045/0.2975, allocations: 13.45 MB / 372.4 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01375/0.3114, allocations: 4.877 MB / 377.2 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00313/0.3145, allocations: 87.56 kB / 377.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008281/0.3229, allocations: 4.177 MB / 381.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007247/0.3302, allocations: 2.107 MB / 383.6 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003251/0.3335, allocations: 1.112 MB / 384.7 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009647/0.3431, allocations: 6.046 MB / 390.8 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006307/0.3495, allocations: 5.312 MB / 396.1 MB, free: 2.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003879/0.3534, allocations: 2.146 MB / 398.2 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003973/0.3574, allocations: 2.865 MB / 401.1 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00111/0.3585, allocations: 0.4912 MB / 401.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003296/0.3618, allocations: 1.613 MB / 403.2 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002576/0.3644, allocations: 2.559 MB / 405.7 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004555/0.369, allocations: 2.881 MB / 408.6 MB, free: 8.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01213/0.3811, allocations: 9.483 MB / 418.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.193e-05/0.3812, allocations: 0 / 418.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3812, allocations: 0 / 418.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000366/0.3816, allocations: 4 kB / 418.1 MB, free: 14.87 MB / 334.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.01418/0.3958, allocations: 6.003 MB / 424.1 MB, free: 8.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3958, allocations: 8.031 kB / 424.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01083/0.4067, allocations: 2.542 MB / 426.7 MB, free: 6.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0094/0.4161, allocations: 3.756 MB / 430.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/0.4164, allocations: 311.8 kB / 430.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001639/0.418, allocations: 433.5 kB / 431.2 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02206/0.4401, allocations: 12.42 MB / 443.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001371/0.4403, allocations: 55.48 kB / 443.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004763/0.4408, allocations: 188.1 kB / 443.8 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002873/0.4436, allocations: 2.033 MB / 445.8 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02083/0.4645, allocations: 10.58 MB / 456.4 MB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06325/0.5278, allocations: 44.13 MB / 0.4888 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0134/0.5412, allocations: 4.855 MB / 0.4936 GB, free: 5.863 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002905/0.5442, allocations: 2.008 MB / 0.4955 GB, free: 3.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01287/0.5571, allocations: 7.194 MB / 0.5025 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/0.5571, allocations: 47.56 kB / 0.5026 GB, free: 12.34 MB / 430.1 MB Notification: Performance of pre-optimization done (n=179): time 1.942e-05/0.5572, allocations: 0 / 0.5026 GB, free: 12.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=223): time 0.06546/0.6226, allocations: 19.5 MB / 0.5216 GB, free: 8.801 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.6228, allocations: 209.8 kB / 0.5218 GB, free: 8.551 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007531/0.6303, allocations: 4.464 MB / 0.5262 GB, free: 4.066 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004546/0.6308, allocations: 57.7 kB / 0.5262 GB, free: 4.004 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00258/0.6334, allocations: 3.507 MB / 0.5297 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1974/0.8308, allocations: 0.8345 MB / 0.5305 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004069/0.8349, allocations: 1.337 MB / 0.5318 GB, free: 140.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.657e-05/0.835, allocations: 305.8 kB / 0.5321 GB, free: 140.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005573/0.8405, allocations: 2.364 MB / 0.5344 GB, free: 140.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005957/0.8465, allocations: 6.174 MB / 0.5404 GB, free: 134.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/0.8568, allocations: 9.178 MB / 0.5494 GB, free: 126.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002083/0.857, allocations: 37.56 kB / 0.5494 GB, free: 126.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01995/0.877, allocations: 9.556 MB / 0.5587 GB, free: 123.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002273/0.8773, allocations: 64.34 kB / 0.5588 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002922/0.8776, allocations: 132.7 kB / 0.5589 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004059/0.8817, allocations: 1.375 MB / 0.5603 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004617/0.8863, allocations: 1.466 MB / 0.5617 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/0.8968, allocations: 8.499 MB / 0.57 GB, free: 118.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0053/0.9022, allocations: 355 kB / 0.5703 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/0.9034, allocations: 392.7 kB / 0.5707 GB, free: 118.4 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.004914/0.9084, allocations: 2.49 MB / 0.5732 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009966/0.9094, allocations: 398.8 kB / 0.5735 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008032/0.9174, allocations: 4.126 MB / 0.5776 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.27e-05/0.9175, allocations: 25.09 kB / 0.5776 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-05/0.9175, allocations: 11.83 kB / 0.5776 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-05/0.9176, allocations: 10.45 kB / 0.5776 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02121/0.9388, allocations: 10.31 MB / 0.5877 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.329e-05/0.9389, allocations: 5.406 kB / 0.5877 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/0.9404, allocations: 356 kB / 0.588 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003475/0.9439, allocations: 1.141 MB / 0.5891 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002712/0.9442, allocations: 40 kB / 0.5892 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00861/0.9528, allocations: 7.125 MB / 0.5961 GB, free: 93.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.191e-05/0.9529, allocations: 15.94 kB / 0.5961 GB, free: 93.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/0.9635, allocations: 6.907 MB / 0.6029 GB, free: 86.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/0.9648, allocations: 458.9 kB / 0.6033 GB, free: 86.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001012/0.9659, allocations: 47.92 kB / 0.6034 GB, free: 86.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002237/0.9681, allocations: 107.9 kB / 0.6035 GB, free: 86.11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004349/0.9686, allocations: 149.1 kB / 0.6036 GB, free: 85.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000183/0.9688, allocations: 56 kB / 0.6037 GB, free: 85.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005084/0.9739, allocations: 2.802 MB / 0.6064 GB, free: 83.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9739, allocations: 2.297 kB / 0.6064 GB, free: 83.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00682/0.9807, allocations: 1.188 MB / 0.6076 GB, free: 81.92 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.0008123/0.9816, allocations: 232.5 kB / 0.6078 GB, free: 81.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008619/0.9902, allocations: 5.776 MB / 0.6134 GB, free: 75.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/0.9902, allocations: 4 kB / 0.6134 GB, free: 75.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002608/0.9929, allocations: 1.88 MB / 0.6153 GB, free: 74.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004392/0.9973, allocations: 0.5329 MB / 0.6158 GB, free: 73.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02057/1.018, allocations: 11.03 MB / 0.6266 GB, free: 62.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005877/1.024, allocations: 3.863 MB / 0.6303 GB, free: 58.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004464/1.028, allocations: 1.922 MB / 0.6322 GB, free: 56.58 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001047/1.029, allocations: 271.4 kB / 0.6325 GB, free: 56.32 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/1.029, allocations: 0 / 0.6325 GB, free: 56.32 MB / 446.1 MB Notification: Performance of Templates: time 0.06948/1.099, allocations: 40.03 MB / 0.6716 GB, free: 16.61 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches