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.001705/0.001705, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001997/0.001997, allocations: 209.6 kB / 23.73 MB, free: 4.523 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.529/1.529, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.002635/0.002635, allocations: 51.92 kB / 378.2 MB, free: 2.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3285, allocations: 53.37 MB / 431.6 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01715/0.3456, allocations: 13.01 MB / 444.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01131/0.3569, allocations: 4.615 MB / 449.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002818/0.3598, allocations: 115.5 kB / 449.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007624/0.3674, allocations: 3.087 MB / 452.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009631/0.377, allocations: 2.615 MB / 455 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003555/0.3806, allocations: 0.9905 MB / 456 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01181/0.3924, allocations: 7.047 MB / 463.1 MB, free: 7.082 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006403/0.3988, allocations: 3.574 MB / 466.6 MB, free: 3.441 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00438/0.4032, allocations: 2.254 MB / 468.9 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00599/0.4092, allocations: 3.517 MB / 472.4 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001893/0.411, allocations: 484 kB / 472.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0039/0.4149, allocations: 1.4 MB / 474.3 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004992/0.4199, allocations: 2.921 MB / 477.2 MB, free: 8.848 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006031/0.426, allocations: 2.376 MB / 479.6 MB, free: 6.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01505/0.441, allocations: 10.45 MB / 490 MB, free: 11.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.441, allocations: 0 / 490 MB, free: 11.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.441, allocations: 4 kB / 490 MB, free: 11.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003637/0.4414, allocations: 0 / 490 MB, free: 11.96 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.01937/0.4608, allocations: 7.353 MB / 497.4 MB, free: 4.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.4608, allocations: 12.03 kB / 497.4 MB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01669/0.4775, allocations: 3.974 MB / 0.4896 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01149/0.489, allocations: 4.067 MB / 0.4936 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000324/0.4893, allocations: 316.4 kB / 0.4939 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001571/0.4909, allocations: 439.6 kB / 0.4943 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02841/0.5193, allocations: 15.8 MB / 0.5097 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001668/0.5195, allocations: 51.58 kB / 0.5098 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007331/0.5202, allocations: 203.8 kB / 0.51 GB, free: 10.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005301/0.5255, allocations: 3.212 MB / 0.5131 GB, free: 7.461 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02825/0.5537, allocations: 14.11 MB / 0.5269 GB, free: 9.328 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3184/0.8722, allocations: 53.38 MB / 0.579 GB, free: 57.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/0.8846, allocations: 5.334 MB / 0.5842 GB, free: 54.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003969/0.8885, allocations: 3.333 MB / 0.5875 GB, free: 51.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01971/0.9082, allocations: 11.94 MB / 0.5992 GB, free: 39.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.9083, allocations: 65.44 kB / 0.5992 GB, free: 39.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 7.234e-06/0.9083, allocations: 0 / 0.5992 GB, free: 39.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=339): time 0.1359/1.044, allocations: 42.53 MB / 0.6408 GB, free: 13.73 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/1.044, allocations: 214 kB / 0.641 GB, free: 13.48 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007845/1.052, allocations: 5.208 MB / 0.646 GB, free: 8.477 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008592/1.053, allocations: 69.7 kB / 0.6461 GB, free: 8.402 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003681/1.057, allocations: 4.557 MB / 0.6506 GB, free: 3.984 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002097/1.059, allocations: 1.318 MB / 0.6518 GB, free: 2.656 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003209/1.062, allocations: 1.857 MB / 0.6537 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/1.062, allocations: 301.1 kB / 0.6539 GB, free: 500 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007491/1.07, allocations: 4.804 MB / 0.6586 GB, free: 11.68 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.014/1.084, allocations: 9.844 MB / 0.6683 GB, free: 15.37 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02205/1.106, allocations: 15.55 MB / 0.6834 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002004/1.106, allocations: 52 kB / 0.6835 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.05082/1.157, allocations: 19.48 MB / 0.7025 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003457/1.157, allocations: 80 kB / 0.7026 GB, free: 9.691 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004217/1.158, allocations: 172 kB / 0.7028 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02525/1.183, allocations: 5.949 MB / 0.7086 GB, free: 3.562 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008977/1.192, allocations: 2.103 MB / 0.7106 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0478/1.24, allocations: 25.67 MB / 0.7357 GB, free: 7.562 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008878/1.248, allocations: 0.554 MB / 0.7362 GB, free: 7.008 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002125/1.251, allocations: 0.5156 MB / 0.7367 GB, free: 6.492 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.007392/1.258, allocations: 3.095 MB / 0.7398 GB, free: 3.383 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001383/1.259, allocations: 484.7 kB / 0.7402 GB, free: 2.906 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2656/1.525, allocations: 12.85 MB / 0.7528 GB, free: 189.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.942e-05/1.525, allocations: 54.98 kB / 0.7528 GB, free: 189.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-05/1.525, allocations: 11.81 kB / 0.7528 GB, free: 189.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.708e-05/1.525, allocations: 16.81 kB / 0.7529 GB, free: 189.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04468/1.57, allocations: 22.15 MB / 0.7745 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.894e-05/1.57, allocations: 7.984 kB / 0.7745 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003006/1.573, allocations: 0.5772 MB / 0.7751 GB, free: 177.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01844/1.591, allocations: 4.972 MB / 0.7799 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006421/1.592, allocations: 52 kB / 0.78 GB, free: 172.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02212/1.614, allocations: 20.89 MB / 0.8004 GB, free: 151.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.614, allocations: 8.594 kB / 0.8004 GB, free: 151.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03103/1.645, allocations: 17.4 MB / 0.8174 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/1.646, allocations: 434.8 kB / 0.8178 GB, free: 134.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009675/1.647, allocations: 63.81 kB / 0.8178 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00281/1.65, allocations: 259.5 kB / 0.8181 GB, free: 134 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006865/1.651, allocations: 210.2 kB / 0.8183 GB, free: 133.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002592/1.651, allocations: 95.22 kB / 0.8184 GB, free: 133.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0035/1.655, allocations: 3.001 MB / 0.8213 GB, free: 130.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.655, allocations: 0 / 0.8213 GB, free: 130.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006727/1.661, allocations: 1.717 MB / 0.823 GB, free: 129 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.0005786/1.662, allocations: 215 kB / 0.8232 GB, free: 128.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01282/1.675, allocations: 10.48 MB / 0.8334 GB, free: 118.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.118e-06/1.675, allocations: 0 / 0.8334 GB, free: 118.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00457/1.679, allocations: 3.79 MB / 0.8371 GB, free: 114.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00398/1.683, allocations: 0.5164 MB / 0.8376 GB, free: 114.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02505/1.708, allocations: 16.29 MB / 0.8535 GB, free: 97.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005572/1.714, allocations: 4.121 MB / 0.8576 GB, free: 93.56 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005902/1.72, allocations: 2.912 MB / 0.8604 GB, free: 90.64 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001333/1.721, allocations: 331.3 kB / 0.8607 GB, free: 90.32 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/1.721, allocations: 0 / 0.8607 GB, free: 90.32 MB / 0.545 GB Notification: Performance of Templates: time 0.1041/1.825, allocations: 78.6 MB / 0.9375 GB, free: 12.13 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/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: 8.580270658712834]