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.001465/0.001465, allocations: 108.4 kB / 18.36 MB, free: 4.641 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.001611/0.001611, allocations: 191 kB / 19.29 MB, free: 3.715 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.428/1.428, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001166/0.001166, allocations: 55.92 kB / 282.1 MB, free: 2.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09544, allocations: 46.63 MB / 328.7 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01501/0.1105, allocations: 15.07 MB / 343.8 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009947/0.1205, allocations: 4.825 MB / 348.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00188/0.1224, allocations: 95.75 kB / 348.7 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005164/0.1276, allocations: 3.161 MB / 351.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007139/0.1348, allocations: 2.552 MB / 354.4 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002093/0.1369, allocations: 0.9983 MB / 355.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00816/0.145, allocations: 6.648 MB / 362.1 MB, free: 2.301 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004812/0.1499, allocations: 4.346 MB / 366.4 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003611/0.1535, allocations: 2.246 MB / 368.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00459/0.1581, allocations: 3.244 MB / 371.9 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001342/0.1595, allocations: 484 kB / 372.4 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002818/0.1623, allocations: 1.479 MB / 373.9 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002703/0.165, allocations: 2.871 MB / 376.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003588/0.1686, allocations: 3.254 MB / 380 MB, free: 292 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1876/0.3562, allocations: 10.44 MB / 390.4 MB, free: 20.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.3563, allocations: 3.031 kB / 390.4 MB, free: 20.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3563, allocations: 3.875 kB / 390.4 MB, free: 20.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003117/0.3566, allocations: 0 / 390.4 MB, free: 20.59 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.0173/0.3739, allocations: 7.289 MB / 397.7 MB, free: 17.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.374, allocations: 9.781 kB / 397.7 MB, free: 17.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01516/0.3891, allocations: 3.94 MB / 401.7 MB, free: 17.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01108/0.4002, allocations: 4.268 MB / 405.9 MB, free: 16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003257/0.4006, allocations: 318.5 kB / 406.3 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002142/0.4027, allocations: 440 kB / 406.7 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02805/0.4308, allocations: 15.71 MB / 422.4 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002604/0.4311, allocations: 63.98 kB / 422.5 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001782/0.4329, allocations: 203.2 kB / 422.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004367/0.4373, allocations: 3.215 MB / 425.9 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02983/0.4671, allocations: 14.13 MB / 440 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08668/0.5538, allocations: 57.48 MB / 497.5 MB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01477/0.5687, allocations: 6.57 MB / 0.4922 GB, free: 3.797 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005626/0.5743, allocations: 3.675 MB / 0.4958 GB, free: 112 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03017/0.6045, allocations: 14.64 MB / 0.5101 GB, free: 1.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.519e-05/0.6046, allocations: 63.59 kB / 0.5102 GB, free: 1 MB / 414.1 MB Notification: Performance of pre-optimization done (n=289): time 7.594e-06/0.6046, allocations: 0 / 0.5102 GB, free: 1 MB / 414.1 MB Notification: Performance of matching and sorting (n=339): time 0.3611/0.9657, allocations: 42.39 MB / 0.5516 GB, free: 143.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.398e-05/0.9658, allocations: 211.6 kB / 0.5518 GB, free: 143.6 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007123/0.973, allocations: 5.493 MB / 0.5572 GB, free: 138.4 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007962/0.9738, allocations: 77.69 kB / 0.5572 GB, free: 138.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002004/0.9758, allocations: 4.347 MB / 0.5615 GB, free: 134 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001244/0.977, allocations: 1.261 MB / 0.5627 GB, free: 132.7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002392/0.9794, allocations: 1.859 MB / 0.5645 GB, free: 130.9 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.297e-05/0.9795, allocations: 301.1 kB / 0.5648 GB, free: 130.6 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005363/0.9849, allocations: 4.804 MB / 0.5695 GB, free: 125.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007039/0.9919, allocations: 9.808 MB / 0.5791 GB, free: 113.5 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01447/1.006, allocations: 15.57 MB / 0.5943 GB, free: 95.49 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001034/1.007, allocations: 55.83 kB / 0.5943 GB, free: 95.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03989/1.046, allocations: 19.57 MB / 0.6134 GB, free: 75.83 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.427e-05/1.047, allocations: 80 kB / 0.6135 GB, free: 75.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001305/1.047, allocations: 172.6 kB / 0.6137 GB, free: 75.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02012/1.067, allocations: 5.941 MB / 0.6195 GB, free: 69.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007083/1.074, allocations: 2.109 MB / 0.6215 GB, free: 67.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02819/1.102, allocations: 26.15 MB / 0.6471 GB, free: 41.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009069/1.111, allocations: 0.5539 MB / 0.6476 GB, free: 40.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001552/1.113, allocations: 0.5117 MB / 0.6481 GB, free: 40.02 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.005557/1.118, allocations: 3.112 MB / 0.6512 GB, free: 36.9 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/1.119, allocations: 0.4897 MB / 0.6516 GB, free: 36.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02705/1.147, allocations: 12.93 MB / 0.6643 GB, free: 23.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.956e-05/1.147, allocations: 58.02 kB / 0.6643 GB, free: 23.35 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-05/1.147, allocations: 15.62 kB / 0.6643 GB, free: 23.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-05/1.147, allocations: 19.89 kB / 0.6644 GB, free: 23.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2397/1.386, allocations: 24.52 MB / 0.6883 GB, free: 133.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.486e-05/1.387, allocations: 5.844 kB / 0.6883 GB, free: 133.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003381/1.39, allocations: 0.5748 MB / 0.6889 GB, free: 133.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01779/1.408, allocations: 4.968 MB / 0.6937 GB, free: 133.1 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008273/1.409, allocations: 56.42 kB / 0.6938 GB, free: 133 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02316/1.432, allocations: 21.33 MB / 0.7146 GB, free: 122.6 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/1.432, allocations: 15.5 kB / 0.7146 GB, free: 122.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0311/1.463, allocations: 17.45 MB / 0.7317 GB, free: 105.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004101/1.467, allocations: 1.25 MB / 0.7329 GB, free: 104.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009375/1.468, allocations: 53.17 kB / 0.7329 GB, free: 104.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002743/1.471, allocations: 265.5 kB / 0.7332 GB, free: 104.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007708/1.472, allocations: 193.4 kB / 0.7334 GB, free: 104.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002946/1.472, allocations: 81.64 kB / 0.7334 GB, free: 104 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004677/1.477, allocations: 3.422 MB / 0.7368 GB, free: 100.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.477, allocations: 4 kB / 0.7368 GB, free: 100.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006913/1.483, allocations: 1.76 MB / 0.7385 GB, free: 98.88 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.000567/1.484, allocations: 219.2 kB / 0.7387 GB, free: 98.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01349/1.498, allocations: 10.97 MB / 0.7494 GB, free: 87.79 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/1.498, allocations: 0 / 0.7494 GB, free: 87.79 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004616/1.502, allocations: 4.098 MB / 0.7534 GB, free: 83.68 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003578/1.506, allocations: 0.6238 MB / 0.754 GB, free: 83.09 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02332/1.529, allocations: 16.05 MB / 0.7697 GB, free: 67.06 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004305/1.533, allocations: 4.624 MB / 0.7742 GB, free: 62.42 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005895/1.539, allocations: 2.969 MB / 0.7771 GB, free: 59.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/1.541, allocations: 351.4 kB / 0.7775 GB, free: 59.14 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/1.541, allocations: 0 / 0.7775 GB, free: 59.14 MB / 430.1 MB Notification: Performance of Templates: time 0.2846/1.825, allocations: 73.93 MB / 0.8497 GB, free: 140.8 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 gbode -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