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.00157/0.001571, allocations: 118.2 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001959/0.001959, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 63.91 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.259, allocations: 50.54 MB / 409.2 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01577/0.2748, allocations: 14.97 MB / 424.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009198/0.2841, allocations: 4.83 MB / 429 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00212/0.2862, allocations: 91.75 kB / 429.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005564/0.2919, allocations: 3.153 MB / 432.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006508/0.2984, allocations: 2.588 MB / 434.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002378/0.3008, allocations: 0.9905 MB / 435.9 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009557/0.3104, allocations: 7.044 MB / 442.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006321/0.3167, allocations: 4.33 MB / 447.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00389/0.3206, allocations: 2.211 MB / 449.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004654/0.3253, allocations: 3.228 MB / 452.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001443/0.3268, allocations: 484 kB / 453.1 MB, free: 5.461 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003255/0.33, allocations: 1.49 MB / 454.6 MB, free: 3.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003525/0.3336, allocations: 2.86 MB / 457.5 MB, free: 1.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005099/0.3387, allocations: 3.215 MB / 460.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01063/0.3493, allocations: 10.36 MB / 471.1 MB, free: 3.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.3494, allocations: 8 kB / 471.1 MB, free: 3.469 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3494, allocations: 0 / 471.1 MB, free: 3.469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000307/0.3497, allocations: 0 / 471.1 MB, free: 3.469 MB / 382.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.01707/0.3668, allocations: 7.237 MB / 478.3 MB, free: 12.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.839e-05/0.3669, allocations: 12.03 kB / 478.3 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0153/0.3822, allocations: 3.939 MB / 482.3 MB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008554/0.3908, allocations: 4.114 MB / 486.4 MB, free: 4.008 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.391, allocations: 320.4 kB / 486.7 MB, free: 3.691 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001055/0.3921, allocations: 435.5 kB / 487.1 MB, free: 3.266 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02368/0.4157, allocations: 15.71 MB / 0.491 GB, free: 2.621 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000134/0.4159, allocations: 55.53 kB / 0.4911 GB, free: 2.566 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005469/0.4165, allocations: 203.8 kB / 0.4913 GB, free: 2.367 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004353/0.4208, allocations: 3.22 MB / 0.4944 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02606/0.4469, allocations: 14.13 MB / 0.5082 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3384/0.7854, allocations: 57.49 MB / 0.5644 GB, free: 84.32 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/0.798, allocations: 6.562 MB / 0.5708 GB, free: 82.01 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004146/0.8022, allocations: 3.682 MB / 0.5744 GB, free: 80.55 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01848/0.8207, allocations: 14.64 MB / 0.5887 GB, free: 72.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.8208, allocations: 62.34 kB / 0.5887 GB, free: 72.38 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 6.732e-06/0.8208, allocations: 0 / 0.5887 GB, free: 72.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1291/0.95, allocations: 42.34 MB / 0.6301 GB, free: 30.31 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/0.9501, allocations: 210 kB / 0.6303 GB, free: 30.06 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006114/0.9562, allocations: 5.469 MB / 0.6356 GB, free: 24.61 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007253/0.9569, allocations: 77.53 kB / 0.6357 GB, free: 24.53 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001765/0.9587, allocations: 4.354 MB / 0.64 GB, free: 20.18 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001141/0.9599, allocations: 1.253 MB / 0.6412 GB, free: 18.93 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002206/0.9621, allocations: 1.855 MB / 0.643 GB, free: 17.07 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.131e-05/0.9621, allocations: 309.1 kB / 0.6433 GB, free: 16.76 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005373/0.9675, allocations: 4.804 MB / 0.648 GB, free: 11.95 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007385/0.9749, allocations: 9.806 MB / 0.6576 GB, free: 15.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0205/0.9954, allocations: 15.58 MB / 0.6728 GB, free: 13.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001532/0.9956, allocations: 52 kB / 0.6728 GB, free: 13.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04584/1.041, allocations: 19.55 MB / 0.6919 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000162/1.042, allocations: 84.25 kB / 0.692 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002365/1.042, allocations: 172 kB / 0.6922 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02231/1.064, allocations: 5.944 MB / 0.698 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008333/1.073, allocations: 2.109 MB / 0.7 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0354/1.108, allocations: 26.15 MB / 0.7256 GB, free: 7.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007141/1.115, allocations: 0.5461 MB / 0.7261 GB, free: 6.777 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001426/1.117, allocations: 0.5117 MB / 0.7266 GB, free: 6.266 MB / 0.5294 GB 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.00511/1.122, allocations: 3.11 MB / 0.7296 GB, free: 3.145 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/1.123, allocations: 0.4916 MB / 0.7301 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03126/1.154, allocations: 12.92 MB / 0.7427 GB, free: 5.652 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001011/1.154, allocations: 59.98 kB / 0.7428 GB, free: 5.594 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/1.154, allocations: 8 kB / 0.7428 GB, free: 5.586 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.22e-05/1.154, allocations: 23.88 kB / 0.7428 GB, free: 5.562 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3192/1.474, allocations: 24.5 MB / 0.7667 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.948e-05/1.474, allocations: 3.781 kB / 0.7667 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002562/1.476, allocations: 0.5785 MB / 0.7673 GB, free: 192.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0165/1.493, allocations: 4.971 MB / 0.7722 GB, free: 191.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004776/1.493, allocations: 54.5 kB / 0.7722 GB, free: 191.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02155/1.515, allocations: 21.36 MB / 0.7931 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/1.515, allocations: 7.938 kB / 0.7931 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02895/1.544, allocations: 17.45 MB / 0.8101 GB, free: 156.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/1.545, allocations: 0.5349 MB / 0.8106 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007069/1.546, allocations: 55.98 kB / 0.8107 GB, free: 155.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002543/1.548, allocations: 265.4 kB / 0.8109 GB, free: 155.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000679/1.549, allocations: 197.4 kB / 0.8111 GB, free: 155.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000267/1.549, allocations: 83.98 kB / 0.8112 GB, free: 155.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003763/1.553, allocations: 3.402 MB / 0.8145 GB, free: 151.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 2e-07/1.553, allocations: 0 / 0.8145 GB, free: 151.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005907/1.559, allocations: 1.733 MB / 0.8162 GB, free: 150.2 MB / 0.545 GB 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.0005526/1.56, allocations: 206.9 kB / 0.8164 GB, free: 150 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0122/1.572, allocations: 10.97 MB / 0.8271 GB, free: 139.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.992e-06/1.572, allocations: 0 / 0.8271 GB, free: 139.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004458/1.576, allocations: 4.101 MB / 0.8311 GB, free: 135 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002976/1.579, allocations: 0.6058 MB / 0.8317 GB, free: 134.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01949/1.599, allocations: 16.01 MB / 0.8474 GB, free: 118.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003882/1.603, allocations: 4.623 MB / 0.8519 GB, free: 113.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005773/1.608, allocations: 2.962 MB / 0.8548 GB, free: 110.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/1.61, allocations: 352.7 kB / 0.8551 GB, free: 110.4 MB / 0.545 GB Notification: Performance of SimCode: time 8.22e-07/1.61, allocations: 0 / 0.8551 GB, free: 110.4 MB / 0.545 GB Notification: Performance of Templates: time 0.1001/1.71, allocations: 76.71 MB / 0.93 GB, free: 33.78 MB / 0.545 GB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/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