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.001123/0.001123, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001346/0.001346, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 64.41 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1037, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.195/0.2987, allocations: 14.96 MB / 373.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009391/0.3081, allocations: 4.831 MB / 378.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002203/0.3104, allocations: 96.66 kB / 378.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005846/0.3163, allocations: 3.16 MB / 381.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007645/0.324, allocations: 2.513 MB / 384.5 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002598/0.3266, allocations: 0.9917 MB / 385.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00952/0.3361, allocations: 7.029 MB / 392.5 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00444/0.3406, allocations: 4.342 MB / 396.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003065/0.3437, allocations: 2.215 MB / 399 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003509/0.3472, allocations: 3.223 MB / 402.3 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009234/0.3481, allocations: 484 kB / 402.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002633/0.3508, allocations: 1.485 MB / 404.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002308/0.3531, allocations: 2.83 MB / 407 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003224/0.3563, allocations: 3.22 MB / 410.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009944/0.3663, allocations: 10.35 MB / 420.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3663, allocations: 0 / 420.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3663, allocations: 0 / 420.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002998/0.3667, allocations: 0 / 420.6 MB, free: 12.96 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.01578/0.3824, allocations: 7.246 MB / 427.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.3825, allocations: 12.03 kB / 427.9 MB, free: 5.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01436/0.3969, allocations: 3.943 MB / 431.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009039/0.4059, allocations: 4.114 MB / 435.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002399/0.4062, allocations: 316.6 kB / 436.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001182/0.4074, allocations: 439.5 kB / 436.7 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0226/0.43, allocations: 15.71 MB / 452.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/0.4302, allocations: 59.45 kB / 452.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005456/0.4307, allocations: 203.8 kB / 452.6 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004434/0.4352, allocations: 3.22 MB / 455.9 MB, free: 8.762 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0282/0.4634, allocations: 14.13 MB / 470 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07566/0.5391, allocations: 57.47 MB / 0.5151 GB, free: 15.56 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01348/0.5526, allocations: 6.575 MB / 0.5215 GB, free: 8.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005059/0.5578, allocations: 3.694 MB / 0.5251 GB, free: 5.023 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2339/0.7917, allocations: 14.62 MB / 0.5394 GB, free: 136.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.153e-05/0.7918, allocations: 64 kB / 0.5395 GB, free: 136.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.494e-06/0.7918, allocations: 1.594 kB / 0.5395 GB, free: 136.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1317/0.9235, allocations: 42.34 MB / 0.5808 GB, free: 112.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.828e-05/0.9236, allocations: 217.9 kB / 0.581 GB, free: 112.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005822/0.9294, allocations: 5.462 MB / 0.5863 GB, free: 107.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007105/0.9302, allocations: 73.69 kB / 0.5864 GB, free: 107 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/0.9318, allocations: 4.351 MB / 0.5907 GB, free: 102.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001056/0.9329, allocations: 1.258 MB / 0.5919 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002112/0.935, allocations: 1.852 MB / 0.5937 GB, free: 99.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.9351, allocations: 301.1 kB / 0.594 GB, free: 99.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005452/0.9405, allocations: 4.804 MB / 0.5987 GB, free: 94.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006942/0.9475, allocations: 9.81 MB / 0.6083 GB, free: 82.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01423/0.9617, allocations: 15.57 MB / 0.6235 GB, free: 64.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001235/0.9619, allocations: 48 kB / 0.6235 GB, free: 64.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03835/1, allocations: 19.57 MB / 0.6426 GB, free: 44.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/1, allocations: 79.98 kB / 0.6427 GB, free: 44.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001606/1.001, allocations: 176 kB / 0.6429 GB, free: 44.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01991/1.02, allocations: 5.941 MB / 0.6487 GB, free: 38.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006939/1.027, allocations: 2.113 MB / 0.6507 GB, free: 36.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02845/1.056, allocations: 26.14 MB / 0.6763 GB, free: 9.738 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008248/1.064, allocations: 0.5615 MB / 0.6768 GB, free: 9.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001477/1.066, allocations: 0.5068 MB / 0.6773 GB, free: 8.676 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.005506/1.071, allocations: 3.1 MB / 0.6803 GB, free: 5.562 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/1.072, allocations: 497.5 kB / 0.6808 GB, free: 5.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2365/1.309, allocations: 12.94 MB / 0.6934 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001232/1.309, allocations: 55.48 kB / 0.6935 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.573e-05/1.309, allocations: 8.719 kB / 0.6935 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.537e-05/1.309, allocations: 16.41 kB / 0.6935 GB, free: 137.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0536/1.363, allocations: 24.5 MB / 0.7174 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.753e-05/1.363, allocations: 3.938 kB / 0.7174 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003068/1.366, allocations: 0.5861 MB / 0.718 GB, free: 129.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01844/1.384, allocations: 4.972 MB / 0.7229 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00082/1.385, allocations: 55.72 kB / 0.7229 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02277/1.408, allocations: 21.36 MB / 0.7438 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.184e-06/1.408, allocations: 14.66 kB / 0.7438 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03132/1.439, allocations: 17.45 MB / 0.7608 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00226/1.442, allocations: 0.5269 MB / 0.7614 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001716/1.444, allocations: 58.8 kB / 0.7614 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003197/1.447, allocations: 263.5 kB / 0.7617 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009384/1.448, allocations: 197.1 kB / 0.7618 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002859/1.448, allocations: 90.64 kB / 0.7619 GB, free: 100.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004788/1.453, allocations: 3.394 MB / 0.7652 GB, free: 96.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.453, allocations: 2.938 kB / 0.7653 GB, free: 96.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008793/1.462, allocations: 1.729 MB / 0.7669 GB, free: 95.24 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.0008988/1.463, allocations: 210.5 kB / 0.7671 GB, free: 95.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01472/1.477, allocations: 10.96 MB / 0.7778 GB, free: 84.15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.486e-05/1.477, allocations: 4 kB / 0.7779 GB, free: 84.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005435/1.483, allocations: 4.098 MB / 0.7819 GB, free: 80.05 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005653/1.488, allocations: 0.6093 MB / 0.7824 GB, free: 79.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02477/1.513, allocations: 16.03 MB / 0.7981 GB, free: 63.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004418/1.518, allocations: 4.607 MB / 0.8026 GB, free: 58.82 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0058/1.524, allocations: 2.966 MB / 0.8055 GB, free: 55.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001396/1.525, allocations: 359.4 kB / 0.8058 GB, free: 55.49 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/1.525, allocations: 0 / 0.8058 GB, free: 55.49 MB / 462.1 MB Notification: Performance of Templates: time 0.2845/1.809, allocations: 73.7 MB / 0.8778 GB, free: 147.5 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 -s gbode -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