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.000862/0.000862, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.003441/0.003441, allocations: 160.6 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.8551/0.8551, allocations: 177.1 MB / 205 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.243e-06/1.243e-06, allocations: 0 / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.663e-05/1.787e-05, allocations: 2.281 kB / 325.8 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.008628/0.008646, allocations: 13.04 MB / 338.9 MB, free: 2.332 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0056/0.01425, allocations: 4.632 MB / 343.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008523/0.0151, allocations: 111.4 kB / 343.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002979/0.01808, allocations: 3.235 MB / 346.8 MB, free: 10.32 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002934/0.02101, allocations: 2.679 MB / 349.5 MB, free: 7.633 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.02214, allocations: 1.099 MB / 350.6 MB, free: 6.531 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004853/0.027, allocations: 7.814 MB / 358.4 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002739/0.02973, allocations: 4.097 MB / 362.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00252/0.03225, allocations: 3.375 MB / 365.9 MB, free: 7.164 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002642/0.0349, allocations: 3.585 MB / 369.5 MB, free: 3.57 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004357/0.03533, allocations: 496 kB / 370 MB, free: 3.086 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001391/0.03672, allocations: 1.471 MB / 371.4 MB, free: 1.613 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001466/0.03819, allocations: 3.035 MB / 374.5 MB, free: 14.57 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00135/0.03954, allocations: 1.853 MB / 376.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006361/0.0459, allocations: 10.53 MB / 386.9 MB, free: 2.148 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.0459, allocations: 0 / 386.9 MB, free: 2.148 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.0459, allocations: 4 kB / 386.9 MB, free: 2.145 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.63e-05/0.04599, allocations: 0 / 386.9 MB, free: 2.145 MB / 346.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.007852/0.05384, allocations: 7.391 MB / 394.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.05388, allocations: 16.02 kB / 394.3 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0079/0.06178, allocations: 4.084 MB / 398.4 MB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004706/0.06649, allocations: 4.031 MB / 402.4 MB, free: 2.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.06663, allocations: 320.4 kB / 402.7 MB, free: 2.164 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005684/0.0672, allocations: 432.2 kB / 403.1 MB, free: 1.738 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01394/0.08114, allocations: 15.81 MB / 418.9 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.933e-05/0.08123, allocations: 59.52 kB / 419 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003863/0.08162, allocations: 203.8 kB / 419.2 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002678/0.0843, allocations: 3.219 MB / 422.4 MB, free: 13.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01486/0.09916, allocations: 14.1 MB / 436.5 MB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1807/0.2799, allocations: 53.78 MB / 490.3 MB, free: 69.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006727/0.2866, allocations: 5.534 MB / 495.8 MB, free: 68.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002238/0.2888, allocations: 3.341 MB / 499.2 MB, free: 67.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01068/0.2995, allocations: 12.23 MB / 0.4994 GB, free: 56.46 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.2995, allocations: 63.84 kB / 0.4995 GB, free: 56.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=289): time 5.531e-06/0.2995, allocations: 0 / 0.4995 GB, free: 56.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=339): time 0.07246/0.372, allocations: 43.52 MB / 0.542 GB, free: 13.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.372, allocations: 214 kB / 0.5422 GB, free: 13.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003977/0.376, allocations: 5.37 MB / 0.5474 GB, free: 7.938 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002085/0.3762, allocations: 77.64 kB / 0.5475 GB, free: 7.855 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001099/0.3773, allocations: 4.508 MB / 0.5519 GB, free: 3.508 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006434/0.378, allocations: 1.305 MB / 0.5532 GB, free: 2.223 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001451/0.3794, allocations: 1.833 MB / 0.555 GB, free: 388 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.625e-05/0.3794, allocations: 309.1 kB / 0.5553 GB, free: 76 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004681/0.3841, allocations: 4.797 MB / 0.5599 GB, free: 11.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007003/0.3911, allocations: 9.844 MB / 0.5696 GB, free: 14.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01288/0.404, allocations: 15.55 MB / 0.5848 GB, free: 12.95 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.985e-05/0.4041, allocations: 48 kB / 0.5848 GB, free: 12.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.02564/0.4297, allocations: 19.48 MB / 0.6038 GB, free: 9.375 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.387e-05/0.4298, allocations: 80 kB / 0.6039 GB, free: 9.297 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/0.4299, allocations: 172 kB / 0.6041 GB, free: 9.129 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01201/0.4419, allocations: 5.94 MB / 0.6099 GB, free: 3.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004348/0.4463, allocations: 2.104 MB / 0.6119 GB, free: 1.074 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1716/0.6179, allocations: 25.72 MB / 0.637 GB, free: 142.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004174/0.6221, allocations: 0.6118 MB / 0.6376 GB, free: 142.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004192/0.6225, allocations: 0.5103 MB / 0.6381 GB, free: 142.6 MB / 474.7 MB 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.003108/0.6256, allocations: 3.104 MB / 0.6412 GB, free: 141.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004964/0.6261, allocations: 479.3 kB / 0.6416 GB, free: 141.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01521/0.6413, allocations: 12.86 MB / 0.6542 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.9e-05/0.6414, allocations: 55.98 kB / 0.6542 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.6414, allocations: 8 kB / 0.6542 GB, free: 131.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.928e-05/0.6414, allocations: 15.95 kB / 0.6543 GB, free: 131.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0238/0.6652, allocations: 22.3 MB / 0.676 GB, free: 109 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.6652, allocations: 7.75 kB / 0.676 GB, free: 108.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/0.6666, allocations: 0.5808 MB / 0.6766 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009243/0.6758, allocations: 4.967 MB / 0.6815 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001942/0.676, allocations: 52 kB / 0.6815 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01486/0.6909, allocations: 20.95 MB / 0.702 GB, free: 82.36 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.6909, allocations: 7.938 kB / 0.702 GB, free: 82.36 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01779/0.7086, allocations: 17.38 MB / 0.7189 GB, free: 65.08 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009492/0.7096, allocations: 484.5 kB / 0.7194 GB, free: 64.78 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003739/0.71, allocations: 52 kB / 0.7195 GB, free: 64.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/0.7114, allocations: 307.5 kB / 0.7198 GB, free: 64.43 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003845/0.7118, allocations: 205.5 kB / 0.72 GB, free: 64.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/0.712, allocations: 85.8 kB / 0.72 GB, free: 64.15 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002422/0.7144, allocations: 3.136 MB / 0.7231 GB, free: 61.02 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.7144, allocations: 0 / 0.7231 GB, free: 61.02 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004209/0.7186, allocations: 1.862 MB / 0.7249 GB, free: 59.16 MB / 474.7 MB 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.0004153/0.719, allocations: 223 kB / 0.7251 GB, free: 58.95 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008014/0.727, allocations: 10.48 MB / 0.7354 GB, free: 48.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.727, allocations: 0 / 0.7354 GB, free: 48.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002753/0.7298, allocations: 3.796 MB / 0.7391 GB, free: 44.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/0.7315, allocations: 0.5233 MB / 0.7396 GB, free: 44.18 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01304/0.7446, allocations: 16.82 MB / 0.756 GB, free: 27.27 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002487/0.747, allocations: 4.089 MB / 0.76 GB, free: 23.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001011/0.7481, allocations: 408.4 kB / 0.7604 GB, free: 22.74 MB / 474.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7481, allocations: 0 / 0.7604 GB, free: 22.74 MB / 474.7 MB Notification: Performance of Templates: time 0.2184/0.9665, allocations: 151.3 MB / 0.9081 GB, free: 51.25 MB / 490.7 MB " [Timeout remaining time 659] 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: 10.141992419958115]