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.001073/0.001073, allocations: 112.5 kB / 17.68 MB, free: 5.469 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.0009991/0.0009991, allocations: 192 kB / 18.61 MB, free: 4.543 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.38/1.38, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 47.56 kB / 302 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09154/0.09259, allocations: 49.45 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01431/0.1069, allocations: 15.04 MB / 366.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1798/0.2868, allocations: 4.802 MB / 371.3 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002407/0.2892, allocations: 94.47 kB / 371.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005959/0.2953, allocations: 3.164 MB / 374.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007093/0.3024, allocations: 2.553 MB / 377.1 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002784/0.3052, allocations: 0.9853 MB / 378.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.3162, allocations: 6.969 MB / 385.1 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005097/0.3213, allocations: 4.331 MB / 389.4 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004075/0.3254, allocations: 2.228 MB / 391.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004047/0.3295, allocations: 3.235 MB / 394.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009889/0.3305, allocations: 485.1 kB / 395.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002587/0.3331, allocations: 1.492 MB / 396.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001812/0.335, allocations: 2.864 MB / 399.7 MB, free: 48 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003438/0.3384, allocations: 3.251 MB / 403 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01034/0.3488, allocations: 10.43 MB / 413.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3488, allocations: 0 / 413.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3488, allocations: 0 / 413.4 MB, free: 2.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002126/0.349, allocations: 0 / 413.4 MB, free: 2.582 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.01318/0.3622, allocations: 7.279 MB / 420.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3623, allocations: 8.031 kB / 420.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01465/0.3769, allocations: 3.937 MB / 424.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01032/0.3873, allocations: 4.17 MB / 428.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002666/0.3876, allocations: 320.4 kB / 429.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001504/0.3891, allocations: 437.1 kB / 429.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02752/0.4166, allocations: 15.71 MB / 445.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001441/0.4168, allocations: 59.45 kB / 445.3 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005883/0.4174, allocations: 208.2 kB / 445.5 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004669/0.4221, allocations: 3.213 MB / 448.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02506/0.4471, allocations: 14.12 MB / 462.8 MB, free: 0.582 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06729/0.5145, allocations: 57.51 MB / 0.5082 GB, free: 5.832 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01336/0.5278, allocations: 6.569 MB / 0.5146 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004649/0.5325, allocations: 3.688 MB / 0.5182 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2372/0.7698, allocations: 14.63 MB / 0.5325 GB, free: 126 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.243e-05/0.7698, allocations: 66.34 kB / 0.5325 GB, free: 126 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 6.131e-06/0.7699, allocations: 1.375 kB / 0.5325 GB, free: 126 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1413/0.9111, allocations: 42.34 MB / 0.5739 GB, free: 110.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.144e-05/0.9112, allocations: 222.6 kB / 0.5741 GB, free: 110.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006346/0.9176, allocations: 5.466 MB / 0.5794 GB, free: 104.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007811/0.9184, allocations: 73.7 kB / 0.5795 GB, free: 104.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001863/0.9203, allocations: 4.358 MB / 0.5837 GB, free: 100.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001166/0.9214, allocations: 1.255 MB / 0.585 GB, free: 99.08 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002166/0.9236, allocations: 1.86 MB / 0.5868 GB, free: 97.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.487e-05/0.9237, allocations: 305.1 kB / 0.5871 GB, free: 96.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005206/0.9289, allocations: 4.804 MB / 0.5918 GB, free: 92.09 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006963/0.9359, allocations: 9.81 MB / 0.6014 GB, free: 79.92 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/0.9507, allocations: 15.57 MB / 0.6166 GB, free: 62.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001446/0.9509, allocations: 48 kB / 0.6166 GB, free: 62.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03859/0.9895, allocations: 19.56 MB / 0.6357 GB, free: 43.05 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.9897, allocations: 80 kB / 0.6358 GB, free: 42.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001974/0.9899, allocations: 176 kB / 0.6359 GB, free: 42.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02017/1.01, allocations: 5.93 MB / 0.6417 GB, free: 36.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00712/1.017, allocations: 2.113 MB / 0.6438 GB, free: 34.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02776/1.045, allocations: 26.16 MB / 0.6693 GB, free: 8.293 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008046/1.053, allocations: 0.5607 MB / 0.6699 GB, free: 7.738 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001559/1.055, allocations: 0.5117 MB / 0.6704 GB, free: 7.227 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.005045/1.06, allocations: 3.105 MB / 0.6734 GB, free: 4.109 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/1.061, allocations: 0.4897 MB / 0.6739 GB, free: 3.613 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02962/1.09, allocations: 12.93 MB / 0.6865 GB, free: 6.617 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001054/1.091, allocations: 58.81 kB / 0.6866 GB, free: 6.562 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.34e-05/1.091, allocations: 8 kB / 0.6866 GB, free: 6.555 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.072e-05/1.091, allocations: 15.94 kB / 0.6866 GB, free: 6.539 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2668/1.358, allocations: 24.49 MB / 0.7105 GB, free: 141.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-05/1.358, allocations: 4.812 kB / 0.7105 GB, free: 141.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003099/1.361, allocations: 0.5822 MB / 0.7111 GB, free: 141.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01796/1.379, allocations: 4.971 MB / 0.7159 GB, free: 140.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006696/1.379, allocations: 57.59 kB / 0.716 GB, free: 140.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02295/1.402, allocations: 21.35 MB / 0.7368 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/1.402, allocations: 7.625 kB / 0.7369 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02988/1.432, allocations: 17.45 MB / 0.7539 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/1.434, allocations: 0.5282 MB / 0.7544 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009776/1.435, allocations: 60.02 kB / 0.7545 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002783/1.438, allocations: 265 kB / 0.7547 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007405/1.438, allocations: 192.7 kB / 0.7549 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00028/1.439, allocations: 85.98 kB / 0.755 GB, free: 116.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004121/1.443, allocations: 3.398 MB / 0.7583 GB, free: 112.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.032e-06/1.443, allocations: 0 / 0.7583 GB, free: 112.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00631/1.449, allocations: 1.765 MB / 0.76 GB, free: 111.2 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.0005764/1.45, allocations: 211.2 kB / 0.7602 GB, free: 111 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01234/1.462, allocations: 10.97 MB / 0.7709 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/1.462, allocations: 3.969 kB / 0.771 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004555/1.467, allocations: 4.096 MB / 0.775 GB, free: 96.55 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003262/1.47, allocations: 0.6069 MB / 0.7755 GB, free: 95.97 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/1.49, allocations: 16.03 MB / 0.7912 GB, free: 79.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004259/1.494, allocations: 4.626 MB / 0.7957 GB, free: 75.34 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005576/1.5, allocations: 2.966 MB / 0.7986 GB, free: 72.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001336/1.501, allocations: 351.4 kB / 0.7989 GB, free: 72.07 MB / 478.1 MB Notification: Performance of SimCode: time 7.42e-07/1.501, allocations: 0 / 0.7989 GB, free: 72.07 MB / 478.1 MB Notification: Performance of Templates: time 0.2855/1.787, allocations: 73.85 MB / 0.8711 GB, free: 147.7 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 -s gbode -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