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.001118/0.001118, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001242/0.001242, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.375/1.375, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 47.28 kB / 301.3 MB, free: 5.844 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1218, allocations: 49.46 MB / 350.7 MB, free: 4.387 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01777/0.1396, allocations: 15.03 MB / 365.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.151, allocations: 4.815 MB / 370.6 MB, free: 456 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002887/0.1539, allocations: 95.75 kB / 370.7 MB, free: 360 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2197/0.3736, allocations: 3.149 MB / 373.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007619/0.3813, allocations: 2.553 MB / 376.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002776/0.3841, allocations: 0.9876 MB / 377.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01189/0.396, allocations: 6.973 MB / 384.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006754/0.4028, allocations: 4.331 MB / 388.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004912/0.4078, allocations: 2.222 MB / 390.9 MB, free: 5.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005337/0.4131, allocations: 3.244 MB / 394.1 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001651/0.4148, allocations: 483.2 kB / 394.6 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003629/0.4184, allocations: 1.497 MB / 396.1 MB, free: 3.137 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002952/0.4214, allocations: 2.857 MB / 399 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006076/0.4275, allocations: 3.249 MB / 402.2 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01525/0.4428, allocations: 10.06 MB / 412.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.132e-05/0.4428, allocations: 0 / 412.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.4429, allocations: 0 / 412.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004278/0.4433, allocations: 4 kB / 412.3 MB, free: 3.504 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.02527/0.4686, allocations: 7.297 MB / 419.6 MB, free: 12.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.344e-05/0.4687, allocations: 8.031 kB / 419.6 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01772/0.4864, allocations: 3.934 MB / 423.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/0.4967, allocations: 4.094 MB / 427.6 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003747/0.4971, allocations: 320.5 kB / 427.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002295/0.4994, allocations: 431.5 kB / 428.3 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03078/0.5302, allocations: 15.72 MB / 444.1 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002923/0.5306, allocations: 55.53 kB / 444.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001806/0.5324, allocations: 204.1 kB / 444.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005375/0.5378, allocations: 3.221 MB / 447.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0308/0.5686, allocations: 14.13 MB / 461.7 MB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08541/0.6541, allocations: 57.78 MB / 0.5073 GB, free: 6.559 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01473/0.6689, allocations: 6.564 MB / 0.5137 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005559/0.6745, allocations: 3.691 MB / 0.5173 GB, free: 12.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2326/0.9071, allocations: 14.62 MB / 0.5316 GB, free: 125.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.978e-05/0.9072, allocations: 67.05 kB / 0.5316 GB, free: 125.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.063e-06/0.9072, allocations: 0 / 0.5316 GB, free: 125.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1518/1.059, allocations: 42.34 MB / 0.573 GB, free: 111 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001035/1.059, allocations: 210 kB / 0.5732 GB, free: 110.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009373/1.069, allocations: 5.475 MB / 0.5785 GB, free: 105.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009407/1.07, allocations: 73.7 kB / 0.5786 GB, free: 105.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002136/1.072, allocations: 4.362 MB / 0.5828 GB, free: 100.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001406/1.073, allocations: 1.258 MB / 0.5841 GB, free: 99.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002458/1.076, allocations: 1.846 MB / 0.5859 GB, free: 97.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.281e-05/1.076, allocations: 313 kB / 0.5862 GB, free: 97.44 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005535/1.081, allocations: 4.804 MB / 0.5909 GB, free: 92.63 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007785/1.089, allocations: 9.812 MB / 0.6005 GB, free: 80.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01564/1.105, allocations: 15.57 MB / 0.6157 GB, free: 63.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001495/1.105, allocations: 48 kB / 0.6157 GB, free: 63.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04302/1.148, allocations: 19.57 MB / 0.6348 GB, free: 43.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002183/1.148, allocations: 81.97 kB / 0.6349 GB, free: 43.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003054/1.148, allocations: 172 kB / 0.6351 GB, free: 43.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02239/1.171, allocations: 5.941 MB / 0.6409 GB, free: 37.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007809/1.179, allocations: 2.106 MB / 0.6429 GB, free: 35.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0304/1.209, allocations: 26.16 MB / 0.6685 GB, free: 8.961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008473/1.218, allocations: 0.5611 MB / 0.669 GB, free: 8.402 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002015/1.22, allocations: 0.5146 MB / 0.6695 GB, free: 7.891 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.006778/1.227, allocations: 3.093 MB / 0.6725 GB, free: 4.781 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001652/1.228, allocations: 0.4935 MB / 0.673 GB, free: 4.281 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03549/1.264, allocations: 12.93 MB / 0.6856 GB, free: 7.285 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001058/1.264, allocations: 55.98 kB / 0.6857 GB, free: 7.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.458e-05/1.264, allocations: 15.94 kB / 0.6857 GB, free: 7.215 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.058e-05/1.264, allocations: 19.69 kB / 0.6857 GB, free: 7.199 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2755/1.54, allocations: 24.56 MB / 0.7097 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.243e-05/1.54, allocations: 4 kB / 0.7097 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003169/1.543, allocations: 0.5759 MB / 0.7103 GB, free: 156.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01987/1.563, allocations: 4.988 MB / 0.7151 GB, free: 155.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007754/1.564, allocations: 53.17 kB / 0.7152 GB, free: 155.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02418/1.588, allocations: 21.35 MB / 0.7361 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/1.588, allocations: 3.906 kB / 0.7361 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03599/1.624, allocations: 17.45 MB / 0.7531 GB, free: 131.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/1.625, allocations: 0.5398 MB / 0.7536 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/1.627, allocations: 56 kB / 0.7537 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004437/1.632, allocations: 261.5 kB / 0.7539 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0013/1.633, allocations: 197 kB / 0.7541 GB, free: 130.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006854/1.634, allocations: 84 kB / 0.7542 GB, free: 130.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006521/1.64, allocations: 3.402 MB / 0.7575 GB, free: 127.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.21e-07/1.64, allocations: 0 / 0.7575 GB, free: 127.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01016/1.651, allocations: 1.756 MB / 0.7592 GB, free: 125.3 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.001304/1.652, allocations: 216.1 kB / 0.7594 GB, free: 125.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02377/1.676, allocations: 15.74 MB / 0.7748 GB, free: 109.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/1.676, allocations: 0 / 0.7748 GB, free: 109.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005757/1.682, allocations: 4.097 MB / 0.7788 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.005889/1.687, allocations: 0.6185 MB / 0.7794 GB, free: 104.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02945/1.717, allocations: 16.8 MB / 0.7958 GB, free: 88.08 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007031/1.724, allocations: 4.591 MB / 0.8003 GB, free: 83.45 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002109/1.726, allocations: 415.4 kB / 0.8007 GB, free: 83.05 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/1.726, allocations: 0 / 0.8007 GB, free: 83.05 MB / 478.1 MB Notification: Performance of Templates: time 0.3459/2.072, allocations: 149.6 MB / 0.9468 GB, free: 84.12 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