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.001327/0.001328, allocations: 117 kB / 18.41 MB, free: 4.664 MB / 14.72 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.00133/0.00133, allocations: 190.9 kB / 21.35 MB, free: 1.734 MB / 14.72 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 1.436/1.436, allocations: 222.9 MB / 247.1 MB, free: 4.223 MB / 190.1 MB " [Timeout remaining time 178] 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 0.002585/0.002585, allocations: 51.91 kB / 358.7 MB, free: 8.367 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1277, allocations: 49.43 MB / 408.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0173/0.1451, allocations: 15.03 MB / 423.1 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01137/0.1565, allocations: 4.818 MB / 427.9 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002735/0.1593, allocations: 91.75 kB / 428 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2409/0.4002, allocations: 3.164 MB / 431.2 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00807/0.4084, allocations: 2.551 MB / 433.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003172/0.4116, allocations: 0.9883 MB / 434.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0134/0.425, allocations: 6.972 MB / 441.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0113/0.4363, allocations: 4.327 MB / 446 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007688/0.4441, allocations: 2.226 MB / 448.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006937/0.4511, allocations: 3.227 MB / 451.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003037/0.4542, allocations: 484.7 kB / 452 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006086/0.4603, allocations: 1.504 MB / 453.5 MB, free: 3.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005652/0.466, allocations: 2.863 MB / 456.3 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008419/0.4745, allocations: 3.242 MB / 459.6 MB, free: 120 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01807/0.4926, allocations: 10.48 MB / 470 MB, free: 8.391 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.4927, allocations: 0 / 470 MB, free: 8.391 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.686e-06/0.4927, allocations: 0 / 470 MB, free: 8.391 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004883/0.4932, allocations: 0 / 470 MB, free: 8.391 MB / 366.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.02301/0.5162, allocations: 7.463 MB / 477.5 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.5163, allocations: 8.031 kB / 477.5 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01807/0.5343, allocations: 3.976 MB / 481.5 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.012/0.5464, allocations: 4.184 MB / 485.7 MB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000367/0.5468, allocations: 325.3 kB / 486 MB, free: 8.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002355/0.5492, allocations: 437.4 kB / 486.4 MB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03284/0.582, allocations: 15.72 MB / 0.4904 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002101/0.5823, allocations: 59.47 kB / 0.4904 GB, free: 7.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001093/0.5834, allocations: 203 kB / 0.4906 GB, free: 7.504 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005522/0.5889, allocations: 3.223 MB / 0.4938 GB, free: 4.297 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02967/0.6186, allocations: 14.12 MB / 0.5076 GB, free: 6.148 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08122/0.6999, allocations: 57.6 MB / 0.5638 GB, free: 11.33 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01503/0.7149, allocations: 6.573 MB / 0.5702 GB, free: 4.516 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005834/0.7208, allocations: 3.683 MB / 0.5738 GB, free: 0.8242 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02519/0.7461, allocations: 14.66 MB / 0.5881 GB, free: 1.719 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.006e-05/0.7462, allocations: 64.44 kB / 0.5882 GB, free: 1.645 MB / 494.1 MB Notification: Performance of pre-optimization done (n=289): time 6.322e-06/0.7462, allocations: 0 / 0.5882 GB, free: 1.645 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.4301/1.176, allocations: 42.66 MB / 0.6299 GB, free: 170.9 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/1.176, allocations: 216 kB / 0.6301 GB, free: 170.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01221/1.189, allocations: 5.487 MB / 0.6354 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009464/1.19, allocations: 70.11 kB / 0.6355 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003559/1.193, allocations: 4.543 MB / 0.6399 GB, free: 168.1 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002123/1.195, allocations: 1.314 MB / 0.6412 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005136/1.201, allocations: 1.866 MB / 0.643 GB, free: 166.4 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 5.188e-05/1.201, allocations: 301.1 kB / 0.6433 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007721/1.208, allocations: 4.809 MB / 0.648 GB, free: 164.4 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01037/1.219, allocations: 9.805 MB / 0.6576 GB, free: 156.1 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0167/1.236, allocations: 15.58 MB / 0.6728 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002316/1.236, allocations: 50.19 kB / 0.6729 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04594/1.282, allocations: 19.58 MB / 0.692 GB, free: 128.9 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.000143/1.282, allocations: 86.56 kB / 0.6921 GB, free: 128.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002105/1.282, allocations: 172 kB / 0.6922 GB, free: 128.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02195/1.304, allocations: 5.938 MB / 0.698 GB, free: 122.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007589/1.312, allocations: 2.109 MB / 0.7001 GB, free: 120.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0284/1.34, allocations: 26.16 MB / 0.7256 GB, free: 94.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009628/1.35, allocations: 0.5579 MB / 0.7262 GB, free: 93.63 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002262/1.352, allocations: 0.5126 MB / 0.7267 GB, free: 93.12 MB / 0.5137 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 (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.007708/1.36, allocations: 3.104 MB / 0.7297 GB, free: 90.01 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001835/1.362, allocations: 0.5122 MB / 0.7302 GB, free: 89.49 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03147/1.393, allocations: 12.93 MB / 0.7428 GB, free: 76.49 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.202e-05/1.393, allocations: 59.92 kB / 0.7429 GB, free: 76.43 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-05/1.393, allocations: 8 kB / 0.7429 GB, free: 76.42 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.839e-05/1.394, allocations: 19.95 kB / 0.7429 GB, free: 76.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04831/1.442, allocations: 24.51 MB / 0.7669 GB, free: 51.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.795e-05/1.442, allocations: 4 kB / 0.7669 GB, free: 51.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002983/1.445, allocations: 0.5733 MB / 0.7674 GB, free: 50.84 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01863/1.464, allocations: 4.971 MB / 0.7723 GB, free: 45.86 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007242/1.464, allocations: 58.59 kB / 0.7723 GB, free: 45.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02271/1.487, allocations: 21.37 MB / 0.7932 GB, free: 24.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/1.487, allocations: 7.938 kB / 0.7932 GB, free: 24.16 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2573/1.744, allocations: 17.48 MB / 0.8103 GB, free: 154.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001702/1.746, allocations: 0.5516 MB / 0.8108 GB, free: 154 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001847/1.748, allocations: 56.27 kB / 0.8109 GB, free: 154 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00419/1.752, allocations: 261.6 kB / 0.8111 GB, free: 154 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001135/1.753, allocations: 196.4 kB / 0.8113 GB, free: 154 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003748/1.754, allocations: 88.69 kB / 0.8114 GB, free: 154 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.007119/1.761, allocations: 3.396 MB / 0.8147 GB, free: 153.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.21e-07/1.761, allocations: 1.188 kB / 0.8147 GB, free: 153.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.009476/1.77, allocations: 1.767 MB / 0.8164 GB, free: 153.8 MB / 0.5137 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.001093/1.772, allocations: 204.4 kB / 0.8166 GB, free: 153.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01894/1.791, allocations: 10.98 MB / 0.8274 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/1.791, allocations: 0 / 0.8274 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.007051/1.798, allocations: 4.109 MB / 0.8314 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00775/1.805, allocations: 0.6128 MB / 0.832 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.029/1.835, allocations: 16.84 MB / 0.8484 GB, free: 144 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006254/1.841, allocations: 4.594 MB / 0.8529 GB, free: 142.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002099/1.843, allocations: 418.1 kB / 0.8533 GB, free: 142.4 MB / 0.5137 GB Notification: Performance of SimCode: time 1.302e-06/1.843, allocations: 0 / 0.8533 GB, free: 142.4 MB / 0.5137 GB Notification: Performance of Templates: time 0.1681/2.011, allocations: 150.6 MB / 1 GB, free: 15.7 MB / 0.5294 GB " [Timeout remaining time 658] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 17.939231619006023]