Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002001/0.002001, allocations: 211.4 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.596/1.596, allocations: 230.6 MB / 258.2 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 47.92 kB / 379 MB, free: 2.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3997/0.4014, allocations: 53.37 MB / 432.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01795/0.4193, allocations: 13.02 MB / 445.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.4315, allocations: 4.624 MB / 450 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003064/0.4346, allocations: 107.5 kB / 450.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006755/0.4413, allocations: 3.091 MB / 453.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00761/0.449, allocations: 2.611 MB / 455.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002694/0.4517, allocations: 0.9866 MB / 456.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01144/0.4631, allocations: 7.051 MB / 463.8 MB, free: 7.125 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005663/0.4687, allocations: 3.578 MB / 467.4 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004412/0.4732, allocations: 2.262 MB / 469.7 MB, free: 1.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006143/0.4793, allocations: 3.505 MB / 473.2 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001644/0.4809, allocations: 488 kB / 473.6 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003427/0.4844, allocations: 1.4 MB / 475 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003918/0.4883, allocations: 2.914 MB / 478 MB, free: 8.895 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004567/0.4929, allocations: 2.38 MB / 480.3 MB, free: 6.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01512/0.508, allocations: 10.45 MB / 490.8 MB, free: 12.01 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.508, allocations: 4 kB / 490.8 MB, free: 12 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.508, allocations: 0 / 490.8 MB, free: 12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003653/0.5084, allocations: 0 / 490.8 MB, free: 12 MB / 398.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.02066/0.529, allocations: 7.353 MB / 498.1 MB, free: 4.574 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.5291, allocations: 8.031 kB / 498.2 MB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.017/0.5461, allocations: 3.978 MB / 0.4904 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0139/0.56, allocations: 4.063 MB / 0.4943 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000359/0.5603, allocations: 316.4 kB / 0.4946 GB, free: 12.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002271/0.5626, allocations: 439.6 kB / 0.4951 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03397/0.5965, allocations: 15.8 MB / 0.5105 GB, free: 10.97 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000334/0.5969, allocations: 55.52 kB / 0.5105 GB, free: 10.92 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002044/0.5989, allocations: 203.8 kB / 0.5107 GB, free: 10.72 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006294/0.6052, allocations: 3.223 MB / 0.5139 GB, free: 7.492 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03266/0.6379, allocations: 14.09 MB / 0.5276 GB, free: 9.375 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.475/1.113, allocations: 53.37 MB / 0.5798 GB, free: 57.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01272/1.126, allocations: 5.356 MB / 0.585 GB, free: 54.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004079/1.13, allocations: 3.328 MB / 0.5882 GB, free: 51.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02044/1.15, allocations: 11.93 MB / 0.5999 GB, free: 40.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.904e-05/1.15, allocations: 65.44 kB / 0.6 GB, free: 39.96 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.484e-06/1.15, allocations: 0 / 0.6 GB, free: 39.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1586/1.309, allocations: 42.54 MB / 0.6415 GB, free: 13.84 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001881/1.309, allocations: 217.9 kB / 0.6417 GB, free: 13.59 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009814/1.319, allocations: 5.207 MB / 0.6468 GB, free: 8.586 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001214/1.32, allocations: 65.7 kB / 0.6468 GB, free: 8.516 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005431/1.325, allocations: 4.556 MB / 0.6513 GB, free: 4.066 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00305/1.329, allocations: 1.314 MB / 0.6526 GB, free: 2.742 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003864/1.332, allocations: 1.857 MB / 0.6544 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/1.333, allocations: 305.1 kB / 0.6547 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008506/1.341, allocations: 4.804 MB / 0.6594 GB, free: 11.76 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01542/1.356, allocations: 9.84 MB / 0.669 GB, free: 15.46 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02551/1.382, allocations: 15.55 MB / 0.6842 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002491/1.382, allocations: 52 kB / 0.6842 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.05356/1.436, allocations: 19.48 MB / 0.7033 GB, free: 9.855 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001734/1.436, allocations: 80 kB / 0.7033 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002823/1.436, allocations: 173.3 kB / 0.7035 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0233/1.46, allocations: 5.941 MB / 0.7093 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009881/1.469, allocations: 2.113 MB / 0.7114 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04283/1.512, allocations: 25.67 MB / 0.7364 GB, free: 7.645 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01111/1.523, allocations: 0.554 MB / 0.737 GB, free: 7.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002769/1.526, allocations: 0.5117 MB / 0.7375 GB, free: 6.578 MB / 0.545 GB 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 (1094): * Single equations (assignments): 1086 * 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.01099/1.537, allocations: 3.095 MB / 0.7405 GB, free: 3.469 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002186/1.539, allocations: 488.7 kB / 0.741 GB, free: 2.988 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3127/1.852, allocations: 12.85 MB / 0.7535 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.088e-05/1.852, allocations: 59.83 kB / 0.7536 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.224e-05/1.852, allocations: 7.656 kB / 0.7536 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.959e-05/1.852, allocations: 13.88 kB / 0.7536 GB, free: 189.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0454/1.898, allocations: 22.15 MB / 0.7752 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.198e-05/1.898, allocations: 11.98 kB / 0.7752 GB, free: 178.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002866/1.901, allocations: 0.572 MB / 0.7758 GB, free: 177.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01788/1.918, allocations: 4.972 MB / 0.7806 GB, free: 172.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006148/1.919, allocations: 58.95 kB / 0.7807 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02289/1.942, allocations: 20.89 MB / 0.8011 GB, free: 151.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/1.942, allocations: 8 kB / 0.8011 GB, free: 151.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03205/1.974, allocations: 17.39 MB / 0.8181 GB, free: 134.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/1.976, allocations: 443.5 kB / 0.8185 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001132/1.977, allocations: 55.98 kB / 0.8186 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002753/1.98, allocations: 259.6 kB / 0.8188 GB, free: 134.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007775/1.98, allocations: 209.4 kB / 0.819 GB, free: 133.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002838/1.981, allocations: 91.3 kB / 0.8191 GB, free: 133.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003658/1.984, allocations: 3 MB / 0.822 GB, free: 130.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.984, allocations: 0 / 0.822 GB, free: 130.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008907/1.993, allocations: 1.717 MB / 0.8237 GB, free: 129.1 MB / 0.545 GB 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.0007909/1.994, allocations: 214.3 kB / 0.8239 GB, free: 128.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0177/2.012, allocations: 10.48 MB / 0.8342 GB, free: 118.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.624e-05/2.012, allocations: 4 kB / 0.8342 GB, free: 118.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007808/2.019, allocations: 3.783 MB / 0.8379 GB, free: 114.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005399/2.025, allocations: 0.5219 MB / 0.8384 GB, free: 114.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03262/2.057, allocations: 16.3 MB / 0.8543 GB, free: 97.87 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006498/2.064, allocations: 4.117 MB / 0.8583 GB, free: 93.71 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0079/2.072, allocations: 2.908 MB / 0.8611 GB, free: 90.79 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001506/2.073, allocations: 331.4 kB / 0.8615 GB, free: 90.47 MB / 0.545 GB Notification: Performance of SimCode: time 1.993e-06/2.073, allocations: 0 / 0.8615 GB, free: 90.47 MB / 0.545 GB Notification: Performance of Templates: time 0.1195/2.193, allocations: 78.59 MB / 0.9382 GB, free: 12.29 MB / 0.545 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.127020065992838]