Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001359/0.001358, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.00123/0.00123, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 241.8 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.001111, allocations: 45.08 kB / 300.6 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09385/0.09498, allocations: 49.45 MB / 350.1 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2245/0.3195, allocations: 53.41 MB / 403.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02795/0.3475, allocations: 11.21 MB / 414.7 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01274/0.3603, allocations: 236.5 kB / 414.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006562/0.3669, allocations: 3.133 MB / 418.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007034/0.374, allocations: 2.398 MB / 420.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002555/0.3766, allocations: 0.9166 MB / 421.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.012/0.3886, allocations: 9.894 MB / 431.3 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006542/0.3952, allocations: 4.255 MB / 435.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004009/0.3992, allocations: 1.965 MB / 437.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004951/0.4042, allocations: 3.419 MB / 440.9 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001613/0.4059, allocations: 328 kB / 441.2 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003566/0.4094, allocations: 1.439 MB / 442.7 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003568/0.413, allocations: 2.758 MB / 445.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004945/0.418, allocations: 3.106 MB / 448.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008315/0.4263, allocations: 8.139 MB / 456.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.4264, allocations: 0 / 456.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4264, allocations: 0 / 456.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003206/0.4267, allocations: 4 kB / 456.7 MB, free: 10.06 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.01731/0.444, allocations: 7.291 MB / 464 MB, free: 2.684 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.4441, allocations: 12.03 kB / 464 MB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01673/0.4608, allocations: 3.939 MB / 467.9 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01003/0.4709, allocations: 4.103 MB / 472 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004633/0.4714, allocations: 316.6 kB / 472.3 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00226/0.4737, allocations: 431.6 kB / 472.7 MB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03087/0.5046, allocations: 15.72 MB / 488.5 MB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002852/0.5049, allocations: 59.52 kB / 488.5 MB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001776/0.5067, allocations: 203.8 kB / 488.7 MB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005214/0.5119, allocations: 3.212 MB / 491.9 MB, free: 5.695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02852/0.5405, allocations: 14.14 MB / 0.4942 GB, free: 7.539 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2895/0.83, allocations: 57.77 MB / 0.5506 GB, free: 112.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01438/0.8444, allocations: 6.566 MB / 0.557 GB, free: 111.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004865/0.8493, allocations: 3.687 MB / 0.5606 GB, free: 110.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01947/0.8688, allocations: 14.64 MB / 0.5749 GB, free: 102.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/0.8689, allocations: 65 kB / 0.575 GB, free: 102.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.093e-06/0.869, allocations: 0 / 0.575 GB, free: 102.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1361/1.005, allocations: 42.34 MB / 0.6163 GB, free: 69.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.823e-05/1.005, allocations: 217.4 kB / 0.6165 GB, free: 69.03 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00861/1.014, allocations: 5.474 MB / 0.6219 GB, free: 63.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000848/1.015, allocations: 73.7 kB / 0.622 GB, free: 63.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002393/1.017, allocations: 4.349 MB / 0.6262 GB, free: 59.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00165/1.019, allocations: 1.258 MB / 0.6274 GB, free: 57.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004544/1.023, allocations: 1.852 MB / 0.6292 GB, free: 56.03 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.351e-05/1.023, allocations: 309.1 kB / 0.6295 GB, free: 55.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006253/1.03, allocations: 4.804 MB / 0.6342 GB, free: 50.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008823/1.039, allocations: 9.808 MB / 0.6438 GB, free: 38.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01593/1.055, allocations: 15.58 MB / 0.659 GB, free: 20.78 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001978/1.055, allocations: 52 kB / 0.6591 GB, free: 20.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04128/1.096, allocations: 19.56 MB / 0.6782 GB, free: 1.125 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002324/1.096, allocations: 80 kB / 0.6782 GB, free: 1.047 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002964/1.097, allocations: 175.9 kB / 0.6784 GB, free: 0.875 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02251/1.119, allocations: 5.933 MB / 0.6842 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008033/1.127, allocations: 2.109 MB / 0.6863 GB, free: 8.816 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2627/1.39, allocations: 24.78 MB / 0.7105 GB, free: 159.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008584/1.399, allocations: 0.5566 MB / 0.711 GB, free: 159.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002029/1.401, allocations: 0.5123 MB / 0.7115 GB, free: 159.1 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.006701/1.407, allocations: 3.098 MB / 0.7145 GB, free: 158.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001474/1.409, allocations: 0.4971 MB / 0.715 GB, free: 158.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0318/1.441, allocations: 12.93 MB / 0.7276 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001172/1.441, allocations: 55.22 kB / 0.7277 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-05/1.441, allocations: 8.906 kB / 0.7277 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.114e-05/1.441, allocations: 18.25 kB / 0.7277 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05222/1.493, allocations: 24.56 MB / 0.7517 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.285e-05/1.493, allocations: 7.75 kB / 0.7517 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003177/1.496, allocations: 0.5801 MB / 0.7523 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01803/1.514, allocations: 4.968 MB / 0.7571 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008528/1.515, allocations: 59.17 kB / 0.7572 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02286/1.538, allocations: 19.98 MB / 0.7767 GB, free: 122.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/1.538, allocations: 8 kB / 0.7767 GB, free: 122.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03262/1.571, allocations: 17.46 MB / 0.7938 GB, free: 105.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/1.573, allocations: 0.5303 MB / 0.7943 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001874/1.574, allocations: 52 kB / 0.7943 GB, free: 105 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003917/1.578, allocations: 262.5 kB / 0.7946 GB, free: 104.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001168/1.58, allocations: 201.2 kB / 0.7948 GB, free: 104.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005963/1.58, allocations: 85.97 kB / 0.7949 GB, free: 104.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005998/1.586, allocations: 3.394 MB / 0.7982 GB, free: 101.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.51e-07/1.586, allocations: 0 / 0.7982 GB, free: 101.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009137/1.595, allocations: 1.771 MB / 0.7999 GB, free: 99.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.001079/1.597, allocations: 211 kB / 0.8001 GB, free: 99.09 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01522/1.612, allocations: 10.93 MB / 0.8108 GB, free: 88.22 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/1.612, allocations: 0 / 0.8108 GB, free: 88.22 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005833/1.618, allocations: 4.105 MB / 0.8148 GB, free: 84.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006187/1.624, allocations: 0.5777 MB / 0.8153 GB, free: 83.54 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03007/1.654, allocations: 19.78 MB / 0.8347 GB, free: 63.73 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005132/1.659, allocations: 4.591 MB / 0.8391 GB, free: 59.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002103/1.661, allocations: 419.4 kB / 0.8395 GB, free: 58.69 MB / 478.1 MB Notification: Performance of SimCode: time 9.51e-07/1.661, allocations: 0 / 0.8395 GB, free: 58.69 MB / 478.1 MB Notification: Performance of Templates: time 0.3832/2.045, allocations: 149.6 MB / 0.9856 GB, free: 68.49 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches