Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001708/0.001708, allocations: 100.2 kB / 18.39 MB, free: 4.66 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.001952/0.001952, allocations: 188.3 kB / 19.33 MB, free: 3.738 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.358/1.358, allocations: 205.1 MB / 225.2 MB, free: 12.2 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.001328/0.001328, allocations: 47.94 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08596/0.0873, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.207/0.2944, allocations: 15.07 MB / 390.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.3048, allocations: 4.824 MB / 395.7 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003706/0.3086, allocations: 92.31 kB / 395.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006768/0.3154, allocations: 3.161 MB / 399 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009347/0.3248, allocations: 2.556 MB / 401.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003003/0.3279, allocations: 1 MB / 402.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01191/0.3398, allocations: 6.638 MB / 409.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00682/0.3467, allocations: 4.359 MB / 413.5 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005389/0.3521, allocations: 2.237 MB / 415.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005732/0.3579, allocations: 3.253 MB / 419 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001774/0.3597, allocations: 487.9 kB / 419.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004246/0.3639, allocations: 1.49 MB / 421 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004229/0.3682, allocations: 2.887 MB / 423.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006063/0.3743, allocations: 3.262 MB / 427.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01333/0.3877, allocations: 10.44 MB / 437.6 MB, free: 1.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.3877, allocations: 4 kB / 437.6 MB, free: 1.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3877, allocations: 0 / 437.6 MB, free: 1.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003898/0.3881, allocations: 0 / 437.6 MB, free: 1.645 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0197/0.4078, allocations: 7.295 MB / 444.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.4079, allocations: 8.031 kB / 444.9 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01667/0.4246, allocations: 3.939 MB / 448.8 MB, free: 6.305 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009821/0.4345, allocations: 4.271 MB / 453.1 MB, free: 1.973 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000291/0.4348, allocations: 316.6 kB / 453.4 MB, free: 1.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00182/0.4366, allocations: 439.5 kB / 453.8 MB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02829/0.4649, allocations: 15.71 MB / 469.5 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002401/0.4652, allocations: 59.45 kB / 469.6 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001388/0.4666, allocations: 203.8 kB / 469.8 MB, free: 336 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005204/0.4718, allocations: 3.22 MB / 473 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02636/0.4982, allocations: 14.12 MB / 487.1 MB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07856/0.5768, allocations: 57.49 MB / 0.5318 GB, free: 3.895 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01481/0.5917, allocations: 6.585 MB / 0.5383 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005422/0.5972, allocations: 3.681 MB / 0.5419 GB, free: 9.363 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2673/0.8645, allocations: 14.63 MB / 0.5562 GB, free: 145 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.635e-05/0.8646, allocations: 63.33 kB / 0.5562 GB, free: 144.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 6.963e-06/0.8646, allocations: 1.219 kB / 0.5562 GB, free: 144.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1559/1.02, allocations: 42.39 MB / 0.5976 GB, free: 127 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/1.021, allocations: 213.9 kB / 0.5978 GB, free: 126.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01081/1.031, allocations: 5.494 MB / 0.6032 GB, free: 121.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001034/1.033, allocations: 77.64 kB / 0.6033 GB, free: 121.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002488/1.035, allocations: 4.355 MB / 0.6075 GB, free: 116.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001615/1.037, allocations: 1.259 MB / 0.6087 GB, free: 115.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002571/1.039, allocations: 1.852 MB / 0.6106 GB, free: 113.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.233e-05/1.039, allocations: 305.1 kB / 0.6108 GB, free: 113.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005612/1.045, allocations: 4.808 MB / 0.6155 GB, free: 108.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008306/1.053, allocations: 9.804 MB / 0.6251 GB, free: 96.34 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01603/1.069, allocations: 15.58 MB / 0.6403 GB, free: 78.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001577/1.07, allocations: 48 kB / 0.6404 GB, free: 78.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.0441/1.114, allocations: 19.56 MB / 0.6595 GB, free: 58.64 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002475/1.114, allocations: 84 kB / 0.6596 GB, free: 58.56 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003101/1.114, allocations: 176 kB / 0.6597 GB, free: 58.39 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02201/1.136, allocations: 5.94 MB / 0.6655 GB, free: 52.44 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007802/1.144, allocations: 2.109 MB / 0.6676 GB, free: 50.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03097/1.175, allocations: 26.15 MB / 0.6931 GB, free: 23.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00892/1.184, allocations: 0.5577 MB / 0.6937 GB, free: 23.33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002087/1.186, allocations: 0.5078 MB / 0.6942 GB, free: 22.82 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007489/1.194, allocations: 3.11 MB / 0.6972 GB, free: 19.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001849/1.196, allocations: 497.5 kB / 0.6977 GB, free: 19.21 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03235/1.228, allocations: 12.93 MB / 0.7103 GB, free: 6.203 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001033/1.228, allocations: 55.98 kB / 0.7104 GB, free: 6.148 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.332e-05/1.228, allocations: 8 kB / 0.7104 GB, free: 6.141 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000108/1.228, allocations: 19.94 kB / 0.7104 GB, free: 6.121 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3306/1.559, allocations: 24.51 MB / 0.7343 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.513e-05/1.559, allocations: 5.688 kB / 0.7343 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003497/1.563, allocations: 0.58 MB / 0.7349 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0211/1.584, allocations: 4.972 MB / 0.7398 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008636/1.585, allocations: 59.66 kB / 0.7398 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0278/1.613, allocations: 21.33 MB / 0.7606 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/1.613, allocations: 11.78 kB / 0.7607 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0349/1.647, allocations: 17.46 MB / 0.7777 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003463/1.651, allocations: 1.246 MB / 0.7789 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00159/1.653, allocations: 59.05 kB / 0.779 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004004/1.657, allocations: 263.5 kB / 0.7792 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008971/1.658, allocations: 194.7 kB / 0.7794 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003107/1.658, allocations: 82.36 kB / 0.7795 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00518/1.663, allocations: 3.422 MB / 0.7828 GB, free: 124.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.663, allocations: 0 / 0.7828 GB, free: 124.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01004/1.673, allocations: 1.765 MB / 0.7846 GB, free: 124.5 MB / 494.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001153/1.674, allocations: 205.4 kB / 0.7848 GB, free: 124.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.015/1.689, allocations: 10.97 MB / 0.7955 GB, free: 113.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/1.689, allocations: 2.062 kB / 0.7955 GB, free: 113.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005422/1.695, allocations: 4.106 MB / 0.7995 GB, free: 109.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004746/1.7, allocations: 0.6212 MB / 0.8001 GB, free: 109.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02556/1.725, allocations: 16.64 MB / 0.8163 GB, free: 92.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005671/1.731, allocations: 4.607 MB / 0.8208 GB, free: 87.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002097/1.733, allocations: 415.1 kB / 0.8212 GB, free: 87.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.213e-06/1.733, allocations: 4 kB / 0.8212 GB, free: 87.5 MB / 494.1 MB Notification: Performance of Templates: time 0.4461/2.179, allocations: 150.7 MB / 0.9684 GB, free: 131.8 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches