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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009087/0.0009087, allocations: 77.14 kB / 21.5 MB, free: 2.832 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009442/0.0009442, allocations: 141 kB / 24.89 MB, free: 9.277 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8437/0.8437, allocations: 173.4 MB / 201.5 MB, free: 8.258 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 268.5 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.708e-05/1.817e-05, allocations: 2.312 kB / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.009793/0.009812, allocations: 14.12 MB / 282.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007605/0.01742, allocations: 4.909 MB / 287.5 MB, free: 6.711 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.01856, allocations: 107.5 kB / 287.6 MB, free: 6.605 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003258/0.02182, allocations: 3.387 MB / 291 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004515/0.02633, allocations: 2.757 MB / 293.7 MB, free: 448 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001852/0.02819, allocations: 1.127 MB / 294.9 MB, free: 15.31 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006302/0.03449, allocations: 7.649 MB / 302.5 MB, free: 7.645 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003124/0.03761, allocations: 4.352 MB / 306.9 MB, free: 3.203 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003909/0.04152, allocations: 4.421 MB / 311.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002796/0.04432, allocations: 3.402 MB / 314.7 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004721/0.04479, allocations: 492 kB / 315.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001654/0.04644, allocations: 1.474 MB / 316.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001761/0.0482, allocations: 3.086 MB / 319.7 MB, free: 6.312 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001376/0.04958, allocations: 1.869 MB / 321.6 MB, free: 4.438 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005207/0.05479, allocations: 6.936 MB / 328.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.05479, allocations: 3.984 kB / 328.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.05479, allocations: 0 / 328.5 MB, free: 13.47 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.501e-05/0.05487, allocations: 0 / 328.5 MB, free: 13.47 MB / 314.7 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.00626/0.06113, allocations: 6.589 MB / 335.1 MB, free: 6.812 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.06116, allocations: 12.03 kB / 335.2 MB, free: 6.801 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00449/0.06565, allocations: 1.819 MB / 337 MB, free: 4.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003259/0.06891, allocations: 2.815 MB / 339.8 MB, free: 2.105 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.06905, allocations: 316.4 kB / 340.1 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005395/0.06959, allocations: 436.2 kB / 340.5 MB, free: 1.367 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1256/0.1952, allocations: 7.32 MB / 347.8 MB, free: 49.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.984e-05/0.1953, allocations: 56.94 kB / 347.9 MB, free: 49.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003507/0.1956, allocations: 200 kB / 348.1 MB, free: 49.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002052/0.1977, allocations: 2.866 MB / 351 MB, free: 49.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005327/0.203, allocations: 3.925 MB / 354.9 MB, free: 49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02375/0.2268, allocations: 43.38 MB / 398.3 MB, free: 12.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00449/0.2312, allocations: 2.588 MB / 400.8 MB, free: 9.992 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007155/0.232, allocations: 0.7069 MB / 401.6 MB, free: 9.293 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00696/0.2389, allocations: 6.582 MB / 408.1 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.239, allocations: 66.91 kB / 408.2 MB, free: 2.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=269): time 4.098e-06/0.239, allocations: 0 / 408.2 MB, free: 2.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=300): time 0.01918/0.2581, allocations: 9.323 MB / 417.5 MB, free: 10.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.282e-05/0.2582, allocations: 205.9 kB / 417.7 MB, free: 9.961 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003035/0.2612, allocations: 4.343 MB / 422.1 MB, free: 6.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/0.2614, allocations: 72.05 kB / 422.1 MB, free: 6.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00164/0.263, allocations: 4.345 MB / 426.5 MB, free: 2.227 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006057/0.2636, allocations: 1.159 MB / 427.6 MB, free: 1.129 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001345/0.265, allocations: 1.657 MB / 429.3 MB, free: 15.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.555e-05/0.265, allocations: 313.1 kB / 429.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001815/0.2669, allocations: 1.252 MB / 430.9 MB, free: 14.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003865/0.2707, allocations: 6.268 MB / 437.1 MB, free: 5.586 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005558/0.2763, allocations: 8.216 MB / 445.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-05/0.2763, allocations: 56 kB / 445.4 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.007134/0.2835, allocations: 6.438 MB / 451.8 MB, free: 4.895 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.686e-05/0.2835, allocations: 80 kB / 451.9 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001037/0.2836, allocations: 185.6 kB / 452.1 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001879/0.2855, allocations: 0.8214 MB / 452.9 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003223/0.2887, allocations: 1.985 MB / 454.9 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003933/0.2927, allocations: 4.354 MB / 459.3 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002986/0.2957, allocations: 371.7 kB / 459.6 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000464/0.2961, allocations: 455.9 kB / 460.1 MB, free: 12.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1107): * Single equations (assignments): 1099 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001485/0.2976, allocations: 0.8235 MB / 460.9 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004485/0.298, allocations: 321.9 kB / 461.2 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/0.301, allocations: 2.108 MB / 463.3 MB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.026e-05/0.301, allocations: 55.03 kB / 463.4 MB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.301, allocations: 4 kB / 463.4 MB, free: 9.191 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/0.301, allocations: 23.94 kB / 463.4 MB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0085/0.3095, allocations: 6.332 MB / 469.7 MB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.3095, allocations: 4 kB / 469.7 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.3106, allocations: 401.1 kB / 470.1 MB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.3123, allocations: 0.7955 MB / 470.9 MB, free: 1.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/0.3124, allocations: 51.28 kB / 471 MB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002927/0.3153, allocations: 3.428 MB / 474.4 MB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.3153, allocations: 15.94 kB / 474.4 MB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003779/0.3191, allocations: 3.085 MB / 477.5 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004824/0.3196, allocations: 436.7 kB / 477.9 MB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003474/0.3199, allocations: 54.56 kB / 478 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008767/0.3208, allocations: 51.98 kB / 478 MB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002363/0.321, allocations: 177.4 kB / 478.2 MB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.3211, allocations: 64.97 kB / 478.3 MB, free: 10.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001217/0.3224, allocations: 1.593 MB / 479.8 MB, free: 8.996 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3224, allocations: 0 / 479.8 MB, free: 8.996 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004107/0.3265, allocations: 1.588 MB / 481.4 MB, free: 7.41 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (236): * Single equations (assignments): 228 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003702/0.3268, allocations: 211.8 kB / 481.6 MB, free: 7.195 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004055/0.3309, allocations: 3.886 MB / 485.5 MB, free: 3.418 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001594/0.3311, allocations: 117 kB / 485.6 MB, free: 3.297 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.3321, allocations: 0.9625 MB / 486.6 MB, free: 2.352 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002119/0.3342, allocations: 0.875 MB / 487.5 MB, free: 1.477 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1205/0.4547, allocations: 11.32 MB / 498.8 MB, free: 108.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001399/0.4561, allocations: 1.818 MB / 0.4889 GB, free: 108.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001969/0.4581, allocations: 0.7092 MB / 0.4896 GB, free: 108.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/0.4593, allocations: 0.7413 MB / 0.4903 GB, free: 108.6 MB / 394.7 MB Notification: Performance of SimCode: time 3.947e-06/0.4593, allocations: 3.656 kB / 0.4903 GB, free: 108.6 MB / 394.7 MB Notification: Performance of Templates: time 0.06127/0.5205, allocations: 50.92 MB / 0.54 GB, free: 72.73 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.021819309797138]