Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001347/0.001347, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 247.5 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 63.36 kB / 307.7 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1241, allocations: 50.53 MB / 358.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2605/0.3847, allocations: 14.97 MB / 373.2 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.3958, allocations: 4.83 MB / 378 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003495/0.3994, allocations: 92.62 kB / 378.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006678/0.4061, allocations: 3.168 MB / 381.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008594/0.4147, allocations: 2.504 MB / 383.7 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002883/0.4177, allocations: 0.9899 MB / 384.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01109/0.4288, allocations: 7.03 MB / 391.8 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005653/0.4344, allocations: 4.341 MB / 396.1 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004345/0.4388, allocations: 2.212 MB / 398.3 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005039/0.4439, allocations: 3.223 MB / 401.5 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.4454, allocations: 484 kB / 402 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003817/0.4493, allocations: 1.483 MB / 403.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003654/0.4529, allocations: 2.83 MB / 406.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006122/0.4591, allocations: 3.224 MB / 409.6 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01572/0.4748, allocations: 9.978 MB / 419.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.687e-06/0.4749, allocations: 0 / 419.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4749, allocations: 0 / 419.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003947/0.4753, allocations: 0 / 419.5 MB, free: 13.16 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.0203/0.4956, allocations: 7.249 MB / 426.8 MB, free: 5.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.4957, allocations: 8.031 kB / 426.8 MB, free: 5.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01764/0.5133, allocations: 3.941 MB / 430.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01069/0.524, allocations: 4.043 MB / 434.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003551/0.5244, allocations: 321.5 kB / 435.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002132/0.5266, allocations: 434.7 kB / 435.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0345/0.5611, allocations: 15.72 MB / 451.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002428/0.5614, allocations: 59.47 kB / 451.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001192/0.5626, allocations: 203.5 kB / 451.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006114/0.5687, allocations: 3.212 MB / 454.7 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03174/0.6005, allocations: 14.13 MB / 468.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0886/0.6892, allocations: 57.76 MB / 0.5142 GB, free: 200 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01511/0.7043, allocations: 6.567 MB / 0.5207 GB, free: 9.371 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005595/0.71, allocations: 3.689 MB / 0.5243 GB, free: 5.668 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2409/0.9509, allocations: 14.64 MB / 0.5386 GB, free: 136.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.545e-05/0.9511, allocations: 59.22 kB / 0.5386 GB, free: 136.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 6.121e-06/0.9511, allocations: 0 / 0.5386 GB, free: 136.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1447/1.096, allocations: 42.33 MB / 0.58 GB, free: 113.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/1.096, allocations: 225.9 kB / 0.5802 GB, free: 113.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006626/1.103, allocations: 5.462 MB / 0.5855 GB, free: 107.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008642/1.103, allocations: 77.14 kB / 0.5856 GB, free: 107.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00196/1.105, allocations: 4.351 MB / 0.5898 GB, free: 103.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001449/1.107, allocations: 1.255 MB / 0.591 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002514/1.109, allocations: 1.852 MB / 0.5929 GB, free: 100.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.964e-05/1.109, allocations: 305.1 kB / 0.5931 GB, free: 99.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005674/1.115, allocations: 4.808 MB / 0.5978 GB, free: 94.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007795/1.123, allocations: 9.802 MB / 0.6074 GB, free: 82.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01466/1.138, allocations: 15.58 MB / 0.6226 GB, free: 64.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001418/1.138, allocations: 52 kB / 0.6227 GB, free: 64.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04199/1.18, allocations: 19.56 MB / 0.6418 GB, free: 45.01 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/1.18, allocations: 83.94 kB / 0.6419 GB, free: 44.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002034/1.18, allocations: 172 kB / 0.642 GB, free: 44.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02264/1.203, allocations: 5.941 MB / 0.6478 GB, free: 38.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006967/1.21, allocations: 2.113 MB / 0.6499 GB, free: 36.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02859/1.239, allocations: 26.14 MB / 0.6754 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008044/1.247, allocations: 0.55 MB / 0.676 GB, free: 9.719 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/1.248, allocations: 0.5217 MB / 0.6765 GB, free: 9.203 MB / 446.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.006004/1.254, allocations: 3.097 MB / 0.6795 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/1.256, allocations: 0.4935 MB / 0.68 GB, free: 5.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03405/1.29, allocations: 12.93 MB / 0.6926 GB, free: 8.598 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001242/1.29, allocations: 55.98 kB / 0.6927 GB, free: 8.543 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.587e-05/1.29, allocations: 15.94 kB / 0.6927 GB, free: 8.527 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.112e-05/1.29, allocations: 15.95 kB / 0.6927 GB, free: 8.512 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.269/1.559, allocations: 24.57 MB / 0.7167 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.583e-05/1.559, allocations: 6.938 kB / 0.7167 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003149/1.562, allocations: 0.5737 MB / 0.7172 GB, free: 131.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01957/1.582, allocations: 4.972 MB / 0.7221 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007525/1.583, allocations: 54.59 kB / 0.7222 GB, free: 130.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02311/1.606, allocations: 21.36 MB / 0.743 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.395e-06/1.606, allocations: 11.72 kB / 0.743 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03342/1.639, allocations: 17.45 MB / 0.7601 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/1.641, allocations: 0.5303 MB / 0.7606 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001485/1.642, allocations: 59.19 kB / 0.7606 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00348/1.646, allocations: 259.6 kB / 0.7609 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000865/1.647, allocations: 193.3 kB / 0.7611 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002692/1.647, allocations: 90.23 kB / 0.7612 GB, free: 101.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004614/1.652, allocations: 3.394 MB / 0.7645 GB, free: 97.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.91e-07/1.652, allocations: 0 / 0.7645 GB, free: 97.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007811/1.659, allocations: 1.737 MB / 0.7662 GB, free: 96.09 MB / 462.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.0007941/1.66, allocations: 210.7 kB / 0.7664 GB, free: 95.89 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02193/1.682, allocations: 15.73 MB / 0.7817 GB, free: 80.26 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/1.682, allocations: 0 / 0.7817 GB, free: 80.26 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00542/1.688, allocations: 4.107 MB / 0.7857 GB, free: 76.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004174/1.692, allocations: 0.613 MB / 0.7863 GB, free: 75.58 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02454/1.716, allocations: 16.79 MB / 0.8027 GB, free: 58.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004807/1.721, allocations: 4.595 MB / 0.8072 GB, free: 54.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002238/1.724, allocations: 411.4 kB / 0.8076 GB, free: 53.75 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/1.724, allocations: 0 / 0.8076 GB, free: 53.75 MB / 462.1 MB Notification: Performance of Templates: time 0.4153/2.139, allocations: 149.4 MB / 0.9535 GB, free: 74.05 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches