Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 107.4 kB / 18.36 MB, free: 4.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 192 kB / 19.29 MB, free: 3.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 48.25 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/0.09183, allocations: 46.63 MB / 328.7 MB, free: 3.742 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01376/0.1056, allocations: 15.07 MB / 343.8 MB, free: 4.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00863/0.1143, allocations: 4.82 MB / 348.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001298/0.1156, allocations: 91.75 kB / 348.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004998/0.1206, allocations: 3.165 MB / 351.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004974/0.1256, allocations: 2.548 MB / 354.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00208/0.1277, allocations: 0.9944 MB / 355.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008502/0.1362, allocations: 6.659 MB / 362.1 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005803/0.1421, allocations: 4.338 MB / 366.4 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003757/0.1458, allocations: 2.239 MB / 368.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004721/0.1506, allocations: 3.252 MB / 371.9 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001507/0.1521, allocations: 488 kB / 372.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003333/0.1555, allocations: 1.482 MB / 373.9 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003642/0.1591, allocations: 2.868 MB / 376.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00525/0.1644, allocations: 3.254 MB / 380 MB, free: 248 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1642/0.3286, allocations: 10.44 MB / 390.4 MB, free: 20.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3286, allocations: 0 / 390.4 MB, free: 20.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3287, allocations: 2.953 kB / 390.4 MB, free: 20.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003645/0.329, allocations: 1.094 kB / 390.4 MB, free: 20.64 MB / 318.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.02093/0.35, allocations: 7.287 MB / 397.7 MB, free: 17.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.727e-05/0.35, allocations: 8.312 kB / 397.7 MB, free: 17.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01671/0.3668, allocations: 3.943 MB / 401.7 MB, free: 17.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/0.3774, allocations: 4.274 MB / 405.9 MB, free: 16.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002032/0.3776, allocations: 315.5 kB / 406.3 MB, free: 16.03 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001366/0.379, allocations: 441.5 kB / 406.7 MB, free: 16.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02188/0.4009, allocations: 15.72 MB / 422.4 MB, free: 6.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001411/0.4011, allocations: 65.02 kB / 422.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005948/0.4017, allocations: 201.9 kB / 422.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003933/0.4056, allocations: 3.212 MB / 425.9 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02817/0.4338, allocations: 14.13 MB / 440 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07964/0.5135, allocations: 57.49 MB / 497.5 MB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0136/0.5271, allocations: 6.557 MB / 0.4922 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00509/0.5323, allocations: 3.683 MB / 0.4958 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02435/0.5567, allocations: 14.63 MB / 0.5101 GB, free: 1.133 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.977e-05/0.5567, allocations: 74.64 kB / 0.5102 GB, free: 1.051 MB / 414.1 MB Notification: Performance of pre-optimization done (n=289): time 7.494e-06/0.5568, allocations: 3.469 kB / 0.5102 GB, free: 1.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=339): time 0.3063/0.8631, allocations: 42.37 MB / 0.5516 GB, free: 143.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.032e-05/0.8632, allocations: 213.2 kB / 0.5518 GB, free: 143.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0069/0.8701, allocations: 5.495 MB / 0.5571 GB, free: 138.5 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007489/0.8709, allocations: 74.56 kB / 0.5572 GB, free: 138.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001961/0.8729, allocations: 4.363 MB / 0.5615 GB, free: 134.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001291/0.8742, allocations: 1.252 MB / 0.5627 GB, free: 132.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002353/0.8765, allocations: 1.855 MB / 0.5645 GB, free: 131 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.981e-05/0.8766, allocations: 305.1 kB / 0.5648 GB, free: 130.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00538/0.882, allocations: 4.804 MB / 0.5695 GB, free: 125.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007719/0.8897, allocations: 9.809 MB / 0.5791 GB, free: 113.6 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01506/0.9048, allocations: 15.57 MB / 0.5943 GB, free: 95.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00016/0.905, allocations: 48 kB / 0.5943 GB, free: 95.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04341/0.9484, allocations: 19.57 MB / 0.6134 GB, free: 75.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002119/0.9487, allocations: 80 kB / 0.6135 GB, free: 75.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002719/0.949, allocations: 172.9 kB / 0.6137 GB, free: 75.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02048/0.9695, allocations: 5.944 MB / 0.6195 GB, free: 69.71 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007524/0.977, allocations: 2.106 MB / 0.6215 GB, free: 67.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02795/1.005, allocations: 26.16 MB / 0.6471 GB, free: 41.16 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009742/1.015, allocations: 0.5539 MB / 0.6476 GB, free: 40.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002244/1.017, allocations: 0.5183 MB / 0.6481 GB, free: 40.09 MB / 430.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.006257/1.023, allocations: 3.098 MB / 0.6512 GB, free: 36.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/1.024, allocations: 0.4935 MB / 0.6516 GB, free: 36.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02716/1.052, allocations: 12.94 MB / 0.6643 GB, free: 23.47 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.109e-05/1.052, allocations: 52 kB / 0.6643 GB, free: 23.42 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.602e-05/1.052, allocations: 11.72 kB / 0.6643 GB, free: 23.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.721e-05/1.052, allocations: 15.94 kB / 0.6644 GB, free: 23.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2186/1.27, allocations: 24.52 MB / 0.6883 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.801e-05/1.27, allocations: 5.438 kB / 0.6883 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002865/1.273, allocations: 0.5829 MB / 0.6889 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01691/1.29, allocations: 4.962 MB / 0.6937 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00057/1.291, allocations: 56.66 kB / 0.6938 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0221/1.313, allocations: 21.33 MB / 0.7146 GB, free: 122.6 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/1.313, allocations: 15.55 kB / 0.7146 GB, free: 122.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03062/1.344, allocations: 17.45 MB / 0.7317 GB, free: 105.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004429/1.348, allocations: 1.249 MB / 0.7329 GB, free: 104.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001504/1.35, allocations: 55.03 kB / 0.7329 GB, free: 104.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003556/1.353, allocations: 265.1 kB / 0.7332 GB, free: 104.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007505/1.354, allocations: 187.2 kB / 0.7334 GB, free: 104.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003105/1.354, allocations: 91.64 kB / 0.7335 GB, free: 104.1 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00498/1.359, allocations: 3.426 MB / 0.7368 GB, free: 100.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.359, allocations: 0 / 0.7368 GB, free: 100.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007624/1.367, allocations: 1.759 MB / 0.7385 GB, free: 98.93 MB / 430.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.0006287/1.368, allocations: 216.3 kB / 0.7387 GB, free: 98.73 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01312/1.381, allocations: 10.97 MB / 0.7494 GB, free: 87.83 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.381, allocations: 0 / 0.7494 GB, free: 87.83 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004716/1.385, allocations: 4.095 MB / 0.7534 GB, free: 83.73 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003678/1.389, allocations: 0.6188 MB / 0.754 GB, free: 83.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02063/1.41, allocations: 16.04 MB / 0.7697 GB, free: 67.12 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004435/1.414, allocations: 4.626 MB / 0.7742 GB, free: 62.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005988/1.42, allocations: 2.969 MB / 0.7771 GB, free: 59.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001421/1.422, allocations: 351.4 kB / 0.7775 GB, free: 59.2 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/1.422, allocations: 0 / 0.7775 GB, free: 59.2 MB / 430.1 MB Notification: Performance of Templates: time 0.2767/1.698, allocations: 73.94 MB / 0.8497 GB, free: 140.5 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches