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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001872/0.001873, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001/0.001001, allocations: 111.4 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008754/0.0008754, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2026, allocations: 50.46 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.03798/0.2407, allocations: 53.43 MB / 460.5 MB, free: 6.176 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02241/0.2631, allocations: 11.25 MB / 471.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009708/0.2729, allocations: 235.4 kB / 472 MB, free: 10.65 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005964/0.2789, allocations: 3.117 MB / 475.1 MB, free: 7.523 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005747/0.2847, allocations: 2.386 MB / 477.5 MB, free: 5.129 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001963/0.2867, allocations: 0.9205 MB / 478.4 MB, free: 4.207 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01081/0.2975, allocations: 10.05 MB / 488.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005657/0.3032, allocations: 4.255 MB / 492.7 MB, free: 5.828 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003724/0.307, allocations: 1.977 MB / 494.7 MB, free: 3.844 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004853/0.3119, allocations: 3.411 MB / 498.1 MB, free: 432 kB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001025/0.3129, allocations: 332 kB / 498.4 MB, free: 100 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002678/0.3156, allocations: 1.424 MB / 499.8 MB, free: 14.67 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00253/0.3181, allocations: 2.75 MB / 0.4908 GB, free: 11.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003114/0.3213, allocations: 3.125 MB / 0.4939 GB, free: 8.77 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1993/0.5206, allocations: 9.919 MB / 0.5035 GB, free: 19.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.5206, allocations: 0 / 0.5035 GB, free: 19.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.5206, allocations: 1.031 kB / 0.5035 GB, free: 19.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002893/0.5209, allocations: 0 / 0.5035 GB, free: 19.02 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.01478/0.5357, allocations: 7.293 MB / 0.5107 GB, free: 16.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.5358, allocations: 9.344 kB / 0.5107 GB, free: 16.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01548/0.5513, allocations: 3.943 MB / 0.5145 GB, free: 16.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01101/0.5623, allocations: 4.042 MB / 0.5185 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003486/0.5627, allocations: 319.5 kB / 0.5188 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002468/0.5652, allocations: 434.7 kB / 0.5192 GB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02382/0.589, allocations: 15.71 MB / 0.5345 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/0.5892, allocations: 62.39 kB / 0.5346 GB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006162/0.5898, allocations: 209.7 kB / 0.5348 GB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004099/0.5939, allocations: 3.209 MB / 0.5379 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02319/0.6172, allocations: 14.13 MB / 0.5517 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06936/0.6866, allocations: 57.77 MB / 0.6081 GB, free: 6.215 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01287/0.6995, allocations: 6.571 MB / 0.6146 GB, free: 15.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004578/0.7041, allocations: 3.687 MB / 0.6182 GB, free: 11.71 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02271/0.7268, allocations: 14.63 MB / 0.6324 GB, free: 12.68 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.094e-05/0.7269, allocations: 71.31 kB / 0.6325 GB, free: 12.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=289): time 6.943e-06/0.7269, allocations: 0 / 0.6325 GB, free: 12.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=339): time 0.1445/0.8714, allocations: 42.34 MB / 0.6739 GB, free: 2.332 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.8715, allocations: 214 kB / 0.6741 GB, free: 2.078 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006803/0.8783, allocations: 5.476 MB / 0.6794 GB, free: 12.62 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006964/0.8791, allocations: 73.7 kB / 0.6795 GB, free: 12.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002521/0.8816, allocations: 4.358 MB / 0.6837 GB, free: 8.211 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00129/0.8829, allocations: 1.255 MB / 0.685 GB, free: 6.969 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0025/0.8854, allocations: 1.858 MB / 0.6868 GB, free: 5.098 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.823e-05/0.8855, allocations: 301.1 kB / 0.6871 GB, free: 4.801 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1929/1.078, allocations: 4.803 MB / 0.6918 GB, free: 217.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009802/1.088, allocations: 9.81 MB / 0.7013 GB, free: 210.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01587/1.104, allocations: 15.57 MB / 0.7166 GB, free: 198.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000142/1.104, allocations: 47.34 kB / 0.7166 GB, free: 198.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04081/1.145, allocations: 19.55 MB / 0.7357 GB, free: 189.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/1.145, allocations: 80 kB / 0.7358 GB, free: 189.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001657/1.145, allocations: 179.4 kB / 0.7359 GB, free: 189.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02236/1.168, allocations: 5.937 MB / 0.7417 GB, free: 183.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006823/1.175, allocations: 2.117 MB / 0.7438 GB, free: 181.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02604/1.201, allocations: 24.76 MB / 0.768 GB, free: 156.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007255/1.208, allocations: 0.5629 MB / 0.7685 GB, free: 156.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001125/1.209, allocations: 0.5155 MB / 0.769 GB, free: 155.7 MB / 0.5105 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.004409/1.214, allocations: 3.096 MB / 0.7721 GB, free: 152.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009308/1.215, allocations: 0.4883 MB / 0.7725 GB, free: 152.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02929/1.244, allocations: 12.94 MB / 0.7852 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.086e-05/1.244, allocations: 59.98 kB / 0.7852 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.696e-05/1.244, allocations: 8 kB / 0.7852 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-05/1.244, allocations: 15.94 kB / 0.7852 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04622/1.29, allocations: 24.58 MB / 0.8092 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.982e-05/1.29, allocations: 4 kB / 0.8093 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002957/1.293, allocations: 0.5772 MB / 0.8098 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01902/1.312, allocations: 4.962 MB / 0.8147 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006282/1.313, allocations: 63.5 kB / 0.8147 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02116/1.334, allocations: 19.99 MB / 0.8342 GB, free: 88.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.303e-06/1.334, allocations: 8 kB / 0.8342 GB, free: 88.58 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4769/1.811, allocations: 145.6 MB / 0.9765 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009948/1.812, allocations: 0.5273 MB / 0.977 GB, free: 150.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007682/1.813, allocations: 55.67 kB / 0.977 GB, free: 150.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002832/1.816, allocations: 263.2 kB / 0.9773 GB, free: 150.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007633/1.817, allocations: 197 kB / 0.9775 GB, free: 149.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002657/1.817, allocations: 91.55 kB / 0.9776 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003903/1.821, allocations: 3.394 MB / 0.9809 GB, free: 146.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/1.821, allocations: 0 / 0.9809 GB, free: 146.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008909/1.83, allocations: 2.403 MB / 0.9832 GB, free: 144.1 MB / 0.5105 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.0008373/1.831, allocations: 214.8 kB / 0.9834 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01468/1.845, allocations: 10.93 MB / 0.9941 GB, free: 133 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/1.845, allocations: 0 / 0.9941 GB, free: 133 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004859/1.85, allocations: 4.096 MB / 0.9981 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004306/1.854, allocations: 0.5862 MB / 0.9987 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02917/1.884, allocations: 21.6 MB / 1.02 GB, free: 107 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005398/1.889, allocations: 4.737 MB / 1.024 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007208/1.896, allocations: 3.035 MB / 1.027 GB, free: 99.18 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001691/1.898, allocations: 359.4 kB / 1.028 GB, free: 98.83 MB / 0.5105 GB Notification: Performance of SimCode: time 1.433e-06/1.898, allocations: 0 / 1.028 GB, free: 98.83 MB / 0.5105 GB Notification: Performance of Templates: time 0.3238/2.222, allocations: 116 MB / 1.141 GB, free: 176.3 MB / 0.5105 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches