Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001158, allocations: 95.36 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009473/0.0009474, allocations: 35.94 kB / 350 MB, free: 52 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2754, allocations: 49.45 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04233/0.3178, allocations: 53.42 MB / 452.9 MB, free: 11.71 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03072/0.3486, allocations: 11.22 MB / 464.1 MB, free: 456 kB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01273/0.3614, allocations: 231.4 kB / 464.3 MB, free: 224 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006805/0.3682, allocations: 3.128 MB / 467.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007555/0.3758, allocations: 2.406 MB / 469.9 MB, free: 10.67 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003062/0.3789, allocations: 0.905 MB / 470.8 MB, free: 9.762 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01322/0.3922, allocations: 9.934 MB / 480.7 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007729/0.3999, allocations: 4.259 MB / 485 MB, free: 11.49 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004814/0.4048, allocations: 1.977 MB / 487 MB, free: 9.508 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006263/0.4111, allocations: 3.415 MB / 490.4 MB, free: 6.082 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002194/0.4133, allocations: 332 kB / 490.7 MB, free: 5.758 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00437/0.4177, allocations: 1.432 MB / 492.1 MB, free: 4.324 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004645/0.4224, allocations: 2.754 MB / 494.9 MB, free: 1.562 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007024/0.4295, allocations: 3.114 MB / 498 MB, free: 14.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01564/0.4451, allocations: 9.937 MB / 0.496 GB, free: 4.461 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.4452, allocations: 4 kB / 0.496 GB, free: 4.457 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4452, allocations: 0 / 0.496 GB, free: 4.457 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004647/0.4457, allocations: 0 / 0.496 GB, free: 4.457 MB / 378.7 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.2277/0.6734, allocations: 7.28 MB / 0.5031 GB, free: 97.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.6735, allocations: 9.719 kB / 0.5031 GB, free: 97.42 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01713/0.6906, allocations: 3.942 MB / 0.507 GB, free: 95.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01065/0.7013, allocations: 4.092 MB / 0.511 GB, free: 92.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002467/0.7016, allocations: 322.9 kB / 0.5113 GB, free: 92.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002081/0.7037, allocations: 431.1 kB / 0.5117 GB, free: 92.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/0.7275, allocations: 15.72 MB / 0.5271 GB, free: 75.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001662/0.7278, allocations: 59.47 kB / 0.5271 GB, free: 75.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000766/0.7285, allocations: 207.7 kB / 0.5273 GB, free: 75.6 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003939/0.7325, allocations: 3.213 MB / 0.5305 GB, free: 72.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02261/0.7551, allocations: 14.13 MB / 0.5443 GB, free: 58.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06813/0.8233, allocations: 57.78 MB / 0.6007 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01307/0.8364, allocations: 6.569 MB / 0.6071 GB, free: 8.137 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004786/0.8412, allocations: 3.681 MB / 0.6107 GB, free: 4.438 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02436/0.8656, allocations: 14.65 MB / 0.625 GB, free: 5.266 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/0.8657, allocations: 60.5 kB / 0.625 GB, free: 5.195 MB / 410.7 MB Notification: Performance of pre-optimization done (n=289): time 5.52e-06/0.8657, allocations: 0 / 0.625 GB, free: 5.195 MB / 410.7 MB Notification: Performance of matching and sorting (n=339): time 0.3555/1.221, allocations: 42.34 MB / 0.6664 GB, free: 146.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.922e-05/1.221, allocations: 216.9 kB / 0.6666 GB, free: 146.4 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007242/1.229, allocations: 5.477 MB / 0.672 GB, free: 144.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007627/1.229, allocations: 73.11 kB / 0.672 GB, free: 144.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002138/1.232, allocations: 4.35 MB / 0.6763 GB, free: 141.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001566/1.233, allocations: 1.26 MB / 0.6775 GB, free: 141 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002526/1.236, allocations: 1.854 MB / 0.6793 GB, free: 140.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.288e-05/1.236, allocations: 304.9 kB / 0.6796 GB, free: 139.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0067/1.242, allocations: 4.808 MB / 0.6843 GB, free: 137.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008732/1.251, allocations: 9.806 MB / 0.6939 GB, free: 128.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01464/1.266, allocations: 15.57 MB / 0.7091 GB, free: 111.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001776/1.266, allocations: 52 kB / 0.7091 GB, free: 111.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04176/1.308, allocations: 19.56 MB / 0.7282 GB, free: 91.73 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002271/1.308, allocations: 80 kB / 0.7283 GB, free: 91.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002978/1.308, allocations: 172 kB / 0.7285 GB, free: 91.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02271/1.331, allocations: 5.939 MB / 0.7343 GB, free: 85.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007578/1.339, allocations: 2.113 MB / 0.7363 GB, free: 83.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02851/1.367, allocations: 24.77 MB / 0.7605 GB, free: 58.39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008658/1.376, allocations: 0.5578 MB / 0.7611 GB, free: 57.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001807/1.378, allocations: 0.5117 MB / 0.7616 GB, free: 57.32 MB / 442.7 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.00633/1.384, allocations: 3.097 MB / 0.7646 GB, free: 54.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001585/1.386, allocations: 497.5 kB / 0.7651 GB, free: 53.71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03102/1.417, allocations: 12.93 MB / 0.7777 GB, free: 40.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.442e-05/1.417, allocations: 61.94 kB / 0.7778 GB, free: 40.65 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-05/1.417, allocations: 8 kB / 0.7778 GB, free: 40.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.435e-05/1.417, allocations: 15.89 kB / 0.7778 GB, free: 40.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05328/1.47, allocations: 24.56 MB / 0.8018 GB, free: 15.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.902e-05/1.471, allocations: 4 kB / 0.8018 GB, free: 15.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003403/1.474, allocations: 0.5838 MB / 0.8023 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01946/1.493, allocations: 4.962 MB / 0.8072 GB, free: 10.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007997/1.494, allocations: 63.22 kB / 0.8072 GB, free: 9.984 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2877/1.782, allocations: 19.99 MB / 0.8268 GB, free: 147.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.935e-06/1.782, allocations: 6.062 kB / 0.8268 GB, free: 147.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3224/2.104, allocations: 145.6 MB / 0.969 GB, free: 19.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/2.106, allocations: 0.532 MB / 0.9695 GB, free: 19.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008567/2.106, allocations: 70.19 kB / 0.9696 GB, free: 19.34 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002889/2.109, allocations: 255.6 kB / 0.9698 GB, free: 19.09 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007268/2.11, allocations: 193.3 kB / 0.97 GB, free: 18.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002572/2.11, allocations: 87.98 kB / 0.9701 GB, free: 18.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004065/2.114, allocations: 3.402 MB / 0.9734 GB, free: 15.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/2.114, allocations: 0 / 0.9734 GB, free: 15.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008563/2.123, allocations: 2.395 MB / 0.9757 GB, free: 13.04 MB / 458.7 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.0007167/2.124, allocations: 211.2 kB / 0.9759 GB, free: 12.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0156/2.139, allocations: 10.93 MB / 0.9866 GB, free: 1.914 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/2.139, allocations: 4 kB / 0.9866 GB, free: 1.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.216/2.355, allocations: 4.102 MB / 0.9906 GB, free: 145.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004444/2.36, allocations: 0.5981 MB / 0.9912 GB, free: 145.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03243/2.392, allocations: 21.6 MB / 1.012 GB, free: 137.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006035/2.398, allocations: 4.728 MB / 1.017 GB, free: 136 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00705/2.406, allocations: 3.037 MB / 1.02 GB, free: 135 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/2.407, allocations: 365.6 kB / 1.02 GB, free: 134.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.112e-06/2.407, allocations: 0 / 1.02 GB, free: 134.6 MB / 458.7 MB Notification: Performance of Templates: time 0.1498/2.557, allocations: 116 MB / 1.134 GB, free: 20.98 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches