Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001009/0.001009, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001037/0.001037, allocations: 160.5 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9466/0.9466, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.707e-05/2.911e-05, allocations: 5.266 kB / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01137/0.0114, allocations: 14.52 MB / 287.4 MB, free: 2.863 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1255/0.1369, allocations: 4.744 MB / 292.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002037/0.139, allocations: 111.4 kB / 292.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004295/0.1433, allocations: 3.394 MB / 295.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004827/0.1481, allocations: 2.7 MB / 298.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.1499, allocations: 1.118 MB / 299.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007126/0.157, allocations: 7.806 MB / 307.3 MB, free: 10.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003842/0.1609, allocations: 4.234 MB / 311.5 MB, free: 7.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004681/0.1656, allocations: 4.431 MB / 316 MB, free: 4.562 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003064/0.1686, allocations: 3.564 MB / 319.5 MB, free: 1.258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009351/0.1696, allocations: 488 kB / 320 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001857/0.1714, allocations: 1.47 MB / 321.5 MB, free: 15.39 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001897/0.1733, allocations: 3.048 MB / 324.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00234/0.1756, allocations: 1.852 MB / 326.4 MB, free: 10.64 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006625/0.1823, allocations: 6.851 MB / 333.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1823, allocations: 0 / 333.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1823, allocations: 0 / 333.2 MB, free: 4.086 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002689/0.1825, allocations: 3.938 kB / 333.2 MB, free: 4.082 MB / 282.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.01155/0.1941, allocations: 7.915 MB / 341.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.1941, allocations: 19.97 kB / 341.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009292/0.2034, allocations: 4.578 MB / 345.8 MB, free: 7.703 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005015/0.2085, allocations: 3.492 MB / 349.2 MB, free: 4.191 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.2086, allocations: 320.6 kB / 349.6 MB, free: 3.934 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006512/0.2093, allocations: 428.3 kB / 350 MB, free: 3.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01665/0.2259, allocations: 9.007 MB / 359 MB, free: 9.484 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001358/0.2261, allocations: 63.47 kB / 359 MB, free: 9.422 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000405/0.2265, allocations: 200.2 kB / 359.2 MB, free: 9.285 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00281/0.2293, allocations: 3.174 MB / 362.4 MB, free: 6.125 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01012/0.2394, allocations: 5.106 MB / 367.5 MB, free: 1.008 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.042/0.2814, allocations: 60.21 MB / 427.7 MB, free: 3.258 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005816/0.2872, allocations: 2.828 MB / 430.6 MB, free: 408 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1301/0.4173, allocations: 1.02 MB / 431.6 MB, free: 112.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.4284, allocations: 7.451 MB / 439 MB, free: 111.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.4284, allocations: 71 kB / 439.1 MB, free: 111.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=269): time 4.749e-06/0.4284, allocations: 0 / 439.1 MB, free: 111.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=300): time 0.02889/0.4573, allocations: 15.37 MB / 454.5 MB, free: 107.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/0.4574, allocations: 214.7 kB / 454.7 MB, free: 107.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004402/0.4618, allocations: 4.845 MB / 459.5 MB, free: 106.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002832/0.4621, allocations: 65.58 kB / 459.6 MB, free: 106.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001878/0.4639, allocations: 4.83 MB / 464.4 MB, free: 102.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000821/0.4648, allocations: 1.214 MB / 465.6 MB, free: 101.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001476/0.4662, allocations: 1.904 MB / 467.5 MB, free: 99.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.004e-05/0.4663, allocations: 479.9 kB / 468 MB, free: 99.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/0.468, allocations: 1.146 MB / 469.1 MB, free: 98.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003433/0.4714, allocations: 8.853 MB / 478 MB, free: 86.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006509/0.4779, allocations: 10.95 MB / 489 MB, free: 72.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001044/0.478, allocations: 52 kB / 489 MB, free: 72.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01081/0.4888, allocations: 8.338 MB / 497.3 MB, free: 64.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.074e-05/0.4889, allocations: 84 kB / 497.4 MB, free: 64.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001243/0.489, allocations: 184.1 kB / 497.6 MB, free: 64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/0.4912, allocations: 1.034 MB / 498.6 MB, free: 62.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003693/0.4949, allocations: 2.106 MB / 0.489 GB, free: 60.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004629/0.4995, allocations: 5.862 MB / 0.4947 GB, free: 54.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004268/0.5038, allocations: 0.5696 MB / 0.4953 GB, free: 54.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004927/0.5043, allocations: 0.5128 MB / 0.4958 GB, free: 53.68 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.001876/0.5061, allocations: 0.8619 MB / 0.4966 GB, free: 52.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000679/0.5068, allocations: 0.5456 MB / 0.4972 GB, free: 52.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00393/0.5107, allocations: 2.834 MB / 0.4999 GB, free: 49.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.179e-05/0.5108, allocations: 51.98 kB / 0.5 GB, free: 49.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.659e-06/0.5108, allocations: 4 kB / 0.5 GB, free: 49.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.5108, allocations: 15.52 kB / 0.5 GB, free: 49.35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01226/0.5231, allocations: 9.289 MB / 0.5091 GB, free: 39.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.5231, allocations: 8.156 kB / 0.5091 GB, free: 39.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/0.5244, allocations: 0.5226 MB / 0.5096 GB, free: 39.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001806/0.5262, allocations: 0.7601 MB / 0.5103 GB, free: 38.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001678/0.5263, allocations: 59.48 kB / 0.5104 GB, free: 38.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003253/0.5296, allocations: 4.817 MB / 0.5151 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.5296, allocations: 11.94 kB / 0.5151 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005495/0.5351, allocations: 4.244 MB / 0.5192 GB, free: 29.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.5362, allocations: 476.5 kB / 0.5197 GB, free: 28.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004213/0.5366, allocations: 50.11 kB / 0.5197 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.5378, allocations: 235.3 kB / 0.52 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003214/0.5381, allocations: 177.5 kB / 0.5201 GB, free: 28.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.5382, allocations: 77.88 kB / 0.5202 GB, free: 28.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002396/0.5406, allocations: 2.056 MB / 0.5222 GB, free: 26.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5406, allocations: 4.031 kB / 0.5222 GB, free: 26.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005174/0.5458, allocations: 1.561 MB / 0.5238 GB, free: 24.51 MB / 378.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.0005535/0.5463, allocations: 212.7 kB / 0.524 GB, free: 24.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00615/0.5525, allocations: 4.694 MB / 0.5285 GB, free: 19.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.5525, allocations: 4 kB / 0.5285 GB, free: 19.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0015/0.554, allocations: 1.284 MB / 0.5298 GB, free: 18.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002308/0.5563, allocations: 0.5356 MB / 0.5303 GB, free: 17.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/0.5702, allocations: 11.55 MB / 0.5416 GB, free: 6.051 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/0.5715, allocations: 1.834 MB / 0.5434 GB, free: 4.184 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003455/0.575, allocations: 2.383 MB / 0.5457 GB, free: 1.797 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007739/0.5758, allocations: 332.5 kB / 0.546 GB, free: 1.469 MB / 378.7 MB Notification: Performance of SimCode: time 2.394e-06/0.5758, allocations: 0 / 0.546 GB, free: 1.469 MB / 378.7 MB Notification: Performance of Templates: time 0.1854/0.7611, allocations: 48.18 MB / 0.5931 GB, free: 100.3 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.297828450333327]