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.001049/0.001049, allocations: 99.06 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 204 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002495/0.0002496, allocations: 4 kB / 308.4 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09389/0.09416, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2278/0.322, allocations: 51.67 MB / 411.6 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02693/0.349, allocations: 11.01 MB / 422.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0117/0.3607, allocations: 235.4 kB / 422.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002399/0.3631, allocations: 0.6104 MB / 423.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00684/0.37, allocations: 2.379 MB / 425.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002356/0.3724, allocations: 0.925 MB / 426.7 MB, free: 8.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0119/0.3843, allocations: 9.964 MB / 436.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00902/0.3934, allocations: 5.709 MB / 442.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00375/0.3971, allocations: 1.731 MB / 444.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004847/0.402, allocations: 3.123 MB / 447.3 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001465/0.4035, allocations: 236 kB / 447.5 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003398/0.4069, allocations: 1.318 MB / 448.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00354/0.4105, allocations: 2.606 MB / 451.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004664/0.4152, allocations: 2.939 MB / 454.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008636/0.4238, allocations: 7.891 MB / 462.3 MB, free: 4.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4239, allocations: 0 / 462.3 MB, free: 4.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4239, allocations: 0 / 462.3 MB, free: 4.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003736/0.4243, allocations: 0 / 462.3 MB, free: 4.355 MB / 366.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.01424/0.4385, allocations: 6.013 MB / 468.3 MB, free: 14.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.4386, allocations: 8.031 kB / 468.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01675/0.4553, allocations: 4.036 MB / 472.3 MB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009371/0.4648, allocations: 4.052 MB / 476.4 MB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003325/0.4651, allocations: 316.6 kB / 476.7 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001845/0.467, allocations: 431.6 kB / 477.1 MB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02838/0.4954, allocations: 15.74 MB / 492.8 MB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000247/0.4957, allocations: 55.53 kB / 492.9 MB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001543/0.4972, allocations: 207.7 kB / 493.1 MB, free: 4.426 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00517/0.5024, allocations: 3.216 MB / 496.3 MB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02704/0.5295, allocations: 14.14 MB / 0.4985 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.27/0.7996, allocations: 57.78 MB / 0.5549 GB, free: 106.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01486/0.8145, allocations: 6.567 MB / 0.5613 GB, free: 104.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004932/0.8194, allocations: 3.683 MB / 0.5649 GB, free: 103.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02128/0.8407, allocations: 14.66 MB / 0.5792 GB, free: 95.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.245e-05/0.8408, allocations: 63.03 kB / 0.5793 GB, free: 95.76 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 6.993e-06/0.8409, allocations: 0 / 0.5793 GB, free: 95.76 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.145/0.9858, allocations: 42.61 MB / 0.6209 GB, free: 61.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.005e-05/0.9859, allocations: 221.1 kB / 0.6211 GB, free: 61.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009027/0.995, allocations: 5.462 MB / 0.6265 GB, free: 55.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008634/0.9959, allocations: 81.62 kB / 0.6265 GB, free: 55.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002378/0.9983, allocations: 4.341 MB / 0.6308 GB, free: 51.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001533/0.9998, allocations: 1.26 MB / 0.632 GB, free: 49.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001099/1.001, allocations: 0.7731 MB / 0.6328 GB, free: 49.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.622e-05/1.001, allocations: 301.1 kB / 0.6331 GB, free: 48.81 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005969/1.007, allocations: 4.812 MB / 0.6378 GB, free: 43.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008175/1.015, allocations: 9.807 MB / 0.6473 GB, free: 31.81 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01522/1.03, allocations: 15.58 MB / 0.6625 GB, free: 13.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001458/1.031, allocations: 48 kB / 0.6626 GB, free: 13.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04307/1.074, allocations: 19.58 MB / 0.6817 GB, free: 10.14 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001224/1.074, allocations: 82.44 kB / 0.6818 GB, free: 10.06 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002063/1.074, allocations: 176 kB / 0.682 GB, free: 9.887 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02381/1.098, allocations: 5.968 MB / 0.6878 GB, free: 3.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00742/1.105, allocations: 2.117 MB / 0.6898 GB, free: 1.789 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2371/1.343, allocations: 24.76 MB / 0.714 GB, free: 152.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007315/1.35, allocations: 0.5559 MB / 0.7146 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001662/1.352, allocations: 0.514 MB / 0.7151 GB, free: 152.6 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.00645/1.358, allocations: 3.105 MB / 0.7181 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.359, allocations: 499.6 kB / 0.7186 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03441/1.394, allocations: 12.95 MB / 0.7312 GB, free: 147.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001006/1.394, allocations: 57.12 kB / 0.7313 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.802e-05/1.394, allocations: 12 kB / 0.7313 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-05/1.394, allocations: 15.09 kB / 0.7313 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04912/1.443, allocations: 24.64 MB / 0.7554 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.825e-05/1.443, allocations: 9.344 kB / 0.7554 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002999/1.446, allocations: 0.5781 MB / 0.7559 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02213/1.468, allocations: 4.999 MB / 0.7608 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00105/1.47, allocations: 57.33 kB / 0.7609 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03023/1.5, allocations: 20.01 MB / 0.7804 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/1.5, allocations: 8 kB / 0.7804 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04395/1.544, allocations: 17.47 MB / 0.7975 GB, free: 92.45 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/1.545, allocations: 0.5445 MB / 0.798 GB, free: 91.98 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001321/1.547, allocations: 59.92 kB / 0.7981 GB, free: 91.92 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003613/1.55, allocations: 263.5 kB / 0.7983 GB, free: 91.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009508/1.551, allocations: 195.7 kB / 0.7985 GB, free: 91.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003118/1.551, allocations: 87.8 kB / 0.7986 GB, free: 91.39 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005073/1.557, allocations: 3.394 MB / 0.8019 GB, free: 88.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.173e-06/1.557, allocations: 1.312 kB / 0.8019 GB, free: 88.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007903/1.565, allocations: 1.735 MB / 0.8036 GB, free: 86.29 MB / 478.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.0008895/1.565, allocations: 210.5 kB / 0.8038 GB, free: 86.08 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01463/1.58, allocations: 10.92 MB / 0.8145 GB, free: 75.21 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/1.58, allocations: 4 kB / 0.8145 GB, free: 75.21 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005651/1.586, allocations: 4.103 MB / 0.8185 GB, free: 71.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007717/1.594, allocations: 0.589 MB / 0.8191 GB, free: 70.53 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02473/1.618, allocations: 19.82 MB / 0.8384 GB, free: 50.66 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004562/1.623, allocations: 4.599 MB / 0.8429 GB, free: 46.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002118/1.625, allocations: 419.3 kB / 0.8433 GB, free: 45.61 MB / 478.1 MB Notification: Performance of SimCode: time 6.02e-07/1.625, allocations: 0 / 0.8433 GB, free: 45.61 MB / 478.1 MB Notification: Performance of Templates: time 0.3724/1.997, allocations: 148.1 MB / 0.988 GB, free: 60.68 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.0.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