Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00162/0.00162, allocations: 85.92 kB / 22 MB, free: 5.18 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.001646/0.001646, allocations: 161.8 kB / 25.25 MB, free: 3.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 158.6 MB / 187 MB, free: 6.234 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 59.92 kB / 299.4 MB, free: 6.848 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2192, allocations: 49.14 MB / 348.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01553/0.2347, allocations: 13.1 MB / 361.6 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00992/0.2446, allocations: 4.625 MB / 366.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001657/0.2463, allocations: 107.5 kB / 366.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005821/0.2521, allocations: 3.095 MB / 369.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005985/0.2581, allocations: 2.662 MB / 372.1 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002107/0.2602, allocations: 0.9944 MB / 373.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009484/0.2697, allocations: 6.643 MB / 379.7 MB, free: 184 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005624/0.2753, allocations: 3.59 MB / 383.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003665/0.2789, allocations: 2.278 MB / 385.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005353/0.2843, allocations: 3.376 MB / 389 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001352/0.2857, allocations: 488 kB / 389.5 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003269/0.2889, allocations: 1.389 MB / 390.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003659/0.2926, allocations: 2.953 MB / 393.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004157/0.2967, allocations: 2.411 MB / 396.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01286/0.3096, allocations: 10.54 MB / 406.8 MB, free: 5.016 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.445e-06/0.3096, allocations: 3.984 kB / 406.8 MB, free: 5.012 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3096, allocations: 0 / 406.8 MB, free: 5.012 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002737/0.3099, allocations: 0 / 406.8 MB, free: 5.012 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.01649/0.3264, allocations: 7.403 MB / 414.2 MB, free: 13.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3264, allocations: 11.98 kB / 414.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01693/0.3433, allocations: 4.084 MB / 418.3 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01015/0.3535, allocations: 4.22 MB / 422.5 MB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003081/0.3538, allocations: 328.4 kB / 422.8 MB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001501/0.3553, allocations: 427.7 kB / 423.2 MB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02725/0.3825, allocations: 15.81 MB / 439 MB, free: 3.652 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001612/0.3827, allocations: 51.58 kB / 439.1 MB, free: 3.602 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006177/0.3833, allocations: 211.8 kB / 439.3 MB, free: 3.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005295/0.3886, allocations: 3.212 MB / 442.5 MB, free: 180 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02945/0.4181, allocations: 14.11 MB / 456.6 MB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2466/0.6647, allocations: 53.58 MB / 0.4982 GB, free: 65.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01129/0.676, allocations: 5.534 MB / 0.5036 GB, free: 64.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003471/0.6794, allocations: 3.336 MB / 0.5069 GB, free: 63.01 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01612/0.6956, allocations: 12.05 MB / 0.5187 GB, free: 55.47 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.6956, allocations: 64.03 kB / 0.5187 GB, free: 55.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 5.771e-06/0.6956, allocations: 0 / 0.5187 GB, free: 55.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=339): time 0.1359/0.8315, allocations: 43.42 MB / 0.5611 GB, free: 12.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.8315, allocations: 214 kB / 0.5613 GB, free: 12.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005011/0.8365, allocations: 5.239 MB / 0.5665 GB, free: 7.215 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00058/0.8371, allocations: 73.7 kB / 0.5665 GB, free: 7.137 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001681/0.8388, allocations: 4.567 MB / 0.571 GB, free: 2.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009745/0.8398, allocations: 1.322 MB / 0.5723 GB, free: 1.398 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002221/0.842, allocations: 1.861 MB / 0.5741 GB, free: 15.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.8421, allocations: 305.1 kB / 0.5744 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007015/0.8491, allocations: 4.796 MB / 0.5791 GB, free: 10.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01109/0.8602, allocations: 9.836 MB / 0.5887 GB, free: 14.11 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02062/0.8809, allocations: 15.56 MB / 0.6039 GB, free: 12.08 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000132/0.881, allocations: 56 kB / 0.6039 GB, free: 12.02 MB / 478.1 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.04827/0.9293, allocations: 19.47 MB / 0.6229 GB, free: 8.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.9294, allocations: 80 kB / 0.623 GB, free: 8.422 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001872/0.9296, allocations: 172 kB / 0.6232 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02477/0.9543, allocations: 5.938 MB / 0.629 GB, free: 2.305 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007671/0.962, allocations: 2.109 MB / 0.631 GB, free: 196 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05369/1.016, allocations: 25.68 MB / 0.6561 GB, free: 6.289 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01066/1.026, allocations: 0.554 MB / 0.6567 GB, free: 5.734 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/1.028, allocations: 0.5195 MB / 0.6572 GB, free: 5.215 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 (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.005284/1.033, allocations: 3.087 MB / 0.6602 GB, free: 2.113 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/1.034, allocations: 484.8 kB / 0.6606 GB, free: 1.637 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2025/1.237, allocations: 12.87 MB / 0.6732 GB, free: 182.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.84e-05/1.237, allocations: 57.02 kB / 0.6733 GB, free: 182.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.615e-05/1.237, allocations: 9.938 kB / 0.6733 GB, free: 182.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.124e-05/1.237, allocations: 15.39 kB / 0.6733 GB, free: 182.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04283/1.28, allocations: 22.2 MB / 0.695 GB, free: 168.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.093e-05/1.28, allocations: 11.98 kB / 0.695 GB, free: 168.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002994/1.283, allocations: 0.5733 MB / 0.6955 GB, free: 168.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01922/1.302, allocations: 4.971 MB / 0.7004 GB, free: 163.3 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005926/1.302, allocations: 55.91 kB / 0.7004 GB, free: 163.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02173/1.324, allocations: 20.9 MB / 0.7209 GB, free: 142.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/1.324, allocations: 7.938 kB / 0.7209 GB, free: 142.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03213/1.356, allocations: 17.4 MB / 0.7378 GB, free: 125 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003192/1.36, allocations: 1.148 MB / 0.739 GB, free: 124.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008499/1.36, allocations: 55.98 kB / 0.739 GB, free: 124.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002797/1.363, allocations: 265 kB / 0.7393 GB, free: 123.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006367/1.364, allocations: 209.4 kB / 0.7395 GB, free: 123.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002673/1.364, allocations: 87.98 kB / 0.7396 GB, free: 123.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003548/1.368, allocations: 3.018 MB / 0.7425 GB, free: 120.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/1.368, allocations: 0 / 0.7425 GB, free: 120.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006725/1.374, allocations: 1.747 MB / 0.7442 GB, free: 118.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.0005176/1.375, allocations: 212.7 kB / 0.7444 GB, free: 118.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01207/1.387, allocations: 10.48 MB / 0.7546 GB, free: 108.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.387, allocations: 1.969 kB / 0.7546 GB, free: 108.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004335/1.391, allocations: 3.789 MB / 0.7583 GB, free: 104.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003034/1.394, allocations: 0.5181 MB / 0.7589 GB, free: 103.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0192/1.414, allocations: 16.35 MB / 0.7748 GB, free: 87.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003989/1.418, allocations: 4.13 MB / 0.7789 GB, free: 83.33 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005389/1.423, allocations: 2.92 MB / 0.7817 GB, free: 80.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001133/1.424, allocations: 328.5 kB / 0.782 GB, free: 80.08 MB / 0.5137 GB Notification: Performance of SimCode: time 8.41e-07/1.424, allocations: 4 kB / 0.782 GB, free: 80.08 MB / 0.5137 GB Notification: Performance of Templates: time 0.2665/1.691, allocations: 72.15 MB / 0.8525 GB, free: 174.3 MB / 0.5137 GB " [Timeout remaining time 658] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 7.641667552990839]