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.001205/0.001206, allocations: 110.6 kB / 16.92 MB, free: 6.332 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.001188/0.001188, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.319/1.319, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000997/0.0009971, allocations: 49.58 kB / 300.6 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.09024, allocations: 49.45 MB / 350.1 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01544/0.1057, allocations: 15.03 MB / 365.1 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00988/0.1156, allocations: 4.819 MB / 369.9 MB, free: 500 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003234/0.1189, allocations: 95.75 kB / 370 MB, free: 404 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1771/0.2961, allocations: 3.146 MB / 373.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006681/0.3028, allocations: 2.556 MB / 375.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002291/0.3051, allocations: 0.9874 MB / 376.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.3152, allocations: 6.966 MB / 383.6 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005577/0.3208, allocations: 4.334 MB / 388 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003894/0.3247, allocations: 2.22 MB / 390.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004195/0.3289, allocations: 3.241 MB / 393.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.3305, allocations: 483.8 kB / 393.9 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003337/0.3338, allocations: 1.495 MB / 395.4 MB, free: 3.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00264/0.3365, allocations: 2.859 MB / 398.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004034/0.3405, allocations: 3.251 MB / 401.5 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.3506, allocations: 10.06 MB / 411.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3506, allocations: 0 / 411.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3506, allocations: 4 kB / 411.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002748/0.3509, allocations: 0 / 411.6 MB, free: 3.551 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.01686/0.3678, allocations: 7.286 MB / 418.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.3678, allocations: 12.03 kB / 418.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01624/0.3841, allocations: 3.933 MB / 422.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009132/0.3932, allocations: 4.096 MB / 426.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002996/0.3936, allocations: 315.9 kB / 427.2 MB, free: 4.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001841/0.3954, allocations: 435 kB / 427.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02764/0.4231, allocations: 15.72 MB / 443.4 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002583/0.4234, allocations: 55.47 kB / 443.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001421/0.4248, allocations: 204.6 kB / 443.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005263/0.4301, allocations: 3.225 MB / 446.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02795/0.4581, allocations: 14.12 MB / 461 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07454/0.5326, allocations: 57.79 MB / 0.5066 GB, free: 6.602 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01453/0.5472, allocations: 6.564 MB / 0.513 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005417/0.5527, allocations: 3.684 MB / 0.5166 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2218/0.7745, allocations: 14.63 MB / 0.5309 GB, free: 125.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.207e-05/0.7746, allocations: 66.05 kB / 0.531 GB, free: 125.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 8.556e-06/0.7747, allocations: 0.6562 kB / 0.531 GB, free: 125.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1501/0.9247, allocations: 42.34 MB / 0.5723 GB, free: 111.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.9249, allocations: 214 kB / 0.5725 GB, free: 110.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009423/0.9343, allocations: 5.472 MB / 0.5779 GB, free: 105.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001109/0.9355, allocations: 76.05 kB / 0.5779 GB, free: 105.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003902/0.9394, allocations: 4.353 MB / 0.5822 GB, free: 101 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00241/0.9418, allocations: 1.258 MB / 0.5834 GB, free: 99.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005575/0.9474, allocations: 1.857 MB / 0.5852 GB, free: 97.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.387e-05/0.9475, allocations: 306 kB / 0.5855 GB, free: 97.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006325/0.9538, allocations: 4.808 MB / 0.5902 GB, free: 92.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008551/0.9624, allocations: 9.808 MB / 0.5998 GB, free: 80.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01506/0.9775, allocations: 15.57 MB / 0.615 GB, free: 63.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001647/0.9777, allocations: 48 kB / 0.615 GB, free: 63.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04309/1.021, allocations: 19.56 MB / 0.6341 GB, free: 43.79 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002687/1.021, allocations: 80 kB / 0.6342 GB, free: 43.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003279/1.021, allocations: 176 kB / 0.6344 GB, free: 43.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02252/1.044, allocations: 5.937 MB / 0.6402 GB, free: 37.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00715/1.051, allocations: 2.114 MB / 0.6422 GB, free: 35.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02921/1.08, allocations: 26.16 MB / 0.6678 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009758/1.09, allocations: 0.5539 MB / 0.6683 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002414/1.093, allocations: 0.5146 MB / 0.6688 GB, free: 7.961 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.008239/1.101, allocations: 3.101 MB / 0.6719 GB, free: 4.844 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001775/1.103, allocations: 0.4913 MB / 0.6723 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03481/1.138, allocations: 12.94 MB / 0.685 GB, free: 7.344 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001127/1.138, allocations: 55.75 kB / 0.685 GB, free: 7.293 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.554e-05/1.138, allocations: 8 kB / 0.685 GB, free: 7.285 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.329e-05/1.138, allocations: 15.94 kB / 0.6851 GB, free: 7.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2711/1.409, allocations: 24.56 MB / 0.709 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-05/1.409, allocations: 7.938 kB / 0.709 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003116/1.412, allocations: 0.5734 MB / 0.7096 GB, free: 156.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01914/1.431, allocations: 4.991 MB / 0.7145 GB, free: 155.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000863/1.432, allocations: 53.06 kB / 0.7145 GB, free: 155.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02396/1.456, allocations: 21.35 MB / 0.7354 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/1.456, allocations: 3.969 kB / 0.7354 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03252/1.489, allocations: 17.45 MB / 0.7524 GB, free: 131.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001597/1.49, allocations: 0.5383 MB / 0.753 GB, free: 131.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001528/1.492, allocations: 52 kB / 0.753 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003591/1.496, allocations: 263.2 kB / 0.7533 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000911/1.497, allocations: 193.6 kB / 0.7534 GB, free: 130.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003881/1.497, allocations: 87.88 kB / 0.7535 GB, free: 130.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005748/1.503, allocations: 3.394 MB / 0.7568 GB, free: 127.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.503, allocations: 0 / 0.7568 GB, free: 127.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00804/1.511, allocations: 1.763 MB / 0.7586 GB, free: 125.4 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.0008509/1.512, allocations: 216.1 kB / 0.7588 GB, free: 125.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0227/1.534, allocations: 15.73 MB / 0.7741 GB, free: 109.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.16e-05/1.534, allocations: 3.875 kB / 0.7741 GB, free: 109.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00507/1.539, allocations: 4.096 MB / 0.7781 GB, free: 105.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005523/1.545, allocations: 0.6191 MB / 0.7787 GB, free: 104.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02615/1.571, allocations: 16.19 MB / 0.7945 GB, free: 88.77 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007179/1.578, allocations: 4.628 MB / 0.7991 GB, free: 84.11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008434/1.587, allocations: 2.963 MB / 0.802 GB, free: 81.14 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002283/1.589, allocations: 355.4 kB / 0.8023 GB, free: 80.79 MB / 478.1 MB Notification: Performance of SimCode: time 1.242e-06/1.589, allocations: 3.828 kB / 0.8023 GB, free: 80.79 MB / 478.1 MB Notification: Performance of Templates: time 0.3335/1.923, allocations: 81.06 MB / 0.8815 GB, free: 143.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/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