Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.0009917/0.0009917, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.001006/0.001006, allocations: 167.7 kB / 25.7 MB, free: 8.426 MB / 18.57 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 0.8437/0.8437, allocations: 158.6 MB / 187.6 MB, free: 2.777 MB / 170.7 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.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.452e-06/1.452e-06, allocations: 0 / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.297e-05/1.442e-05, allocations: 6.25 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.0089/0.008915, allocations: 11.64 MB / 263.2 MB, free: 11.56 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007288/0.0162, allocations: 4.518 MB / 267.7 MB, free: 7.023 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.01731, allocations: 99.44 kB / 267.8 MB, free: 6.926 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00296/0.02027, allocations: 3.106 MB / 270.9 MB, free: 3.809 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003045/0.02331, allocations: 2.205 MB / 273.1 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001398/0.02471, allocations: 1.158 MB / 274.3 MB, free: 444 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004416/0.02912, allocations: 5.999 MB / 280.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002851/0.03197, allocations: 3.879 MB / 284.1 MB, free: 6.461 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002898/0.03487, allocations: 3.361 MB / 287.5 MB, free: 3.094 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002214/0.03709, allocations: 2.603 MB / 290.1 MB, free: 496 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003446/0.03743, allocations: 396 kB / 290.5 MB, free: 100 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001292/0.03872, allocations: 1.213 MB / 291.7 MB, free: 14.88 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.03997, allocations: 2.373 MB / 294.1 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001015/0.04099, allocations: 1.472 MB / 295.6 MB, free: 11.03 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003677/0.04467, allocations: 5.286 MB / 300.8 MB, free: 5.723 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.04467, allocations: 3.938 kB / 300.8 MB, free: 5.719 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.04467, allocations: 0 / 300.8 MB, free: 5.719 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.441e-05/0.04471, allocations: 0 / 300.8 MB, free: 5.719 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: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.004868/0.04957, allocations: 5.034 MB / 305.9 MB, free: 0.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.04961, allocations: 15.98 kB / 305.9 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003633/0.05324, allocations: 1.335 MB / 307.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002566/0.05581, allocations: 2.408 MB / 309.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.05592, allocations: 246.7 kB / 309.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000365/0.05629, allocations: 339.7 kB / 310.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004668/0.06096, allocations: 5.084 MB / 315.3 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.335e-05/0.06103, allocations: 43.62 kB / 315.3 MB, free: 6.402 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.06128, allocations: 159.8 kB / 315.5 MB, free: 6.246 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001515/0.06279, allocations: 1.76 MB / 317.3 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003371/0.06616, allocations: 2.513 MB / 319.8 MB, free: 1.926 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02018/0.08634, allocations: 30.67 MB / 350.4 MB, free: 2.137 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002844/0.08918, allocations: 1.41 MB / 351.8 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003987/0.08958, allocations: 330.3 kB / 352.2 MB, free: 364 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1114/0.201, allocations: 3.53 MB / 355.7 MB, free: 94.65 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.201, allocations: 49.5 kB / 355.7 MB, free: 94.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=136): time 3.457e-06/0.201, allocations: 0 / 355.7 MB, free: 94.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=153): time 0.01365/0.2146, allocations: 6.475 MB / 362.2 MB, free: 94.22 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.2147, allocations: 250.4 kB / 362.5 MB, free: 93.94 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002144/0.2168, allocations: 3.407 MB / 365.9 MB, free: 93.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.558e-05/0.2169, allocations: 54.86 kB / 365.9 MB, free: 93.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007783/0.2177, allocations: 3.176 MB / 369.1 MB, free: 91.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.2179, allocations: 0.6389 MB / 369.7 MB, free: 91.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007319/0.2186, allocations: 1.167 MB / 370.9 MB, free: 90.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.462e-05/0.2187, allocations: 305.1 kB / 371.2 MB, free: 90.2 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009461/0.2196, allocations: 0.7444 MB / 371.9 MB, free: 89.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001575/0.2212, allocations: 4.463 MB / 376.4 MB, free: 83.46 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002599/0.2238, allocations: 5.625 MB / 382 MB, free: 76.5 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-05/0.2238, allocations: 40 kB / 382.1 MB, free: 76.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.003553/0.2274, allocations: 4.338 MB / 386.4 MB, free: 72.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.871e-05/0.2274, allocations: 62.81 kB / 386.5 MB, free: 72.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.276e-05/0.2275, allocations: 136.1 kB / 386.6 MB, free: 71.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.2286, allocations: 0.6523 MB / 387.3 MB, free: 71.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/0.2303, allocations: 1.341 MB / 388.6 MB, free: 69.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003182/0.2335, allocations: 5.372 MB / 394 MB, free: 64.26 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001781/0.2353, allocations: 275.7 kB / 394.2 MB, free: 63.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000223/0.2355, allocations: 320 kB / 394.6 MB, free: 63.68 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (746): * Single equations (assignments): 740 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,9,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0008823/0.2364, allocations: 0.6163 MB / 395.2 MB, free: 63.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002553/0.2366, allocations: 230.9 kB / 395.4 MB, free: 62.83 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.2377, allocations: 0.8993 MB / 396.3 MB, free: 61.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.2377, allocations: 16 kB / 396.3 MB, free: 61.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2377, allocations: 11.92 kB / 396.3 MB, free: 61.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.2377, allocations: 3.984 kB / 396.3 MB, free: 61.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004084/0.2418, allocations: 4.159 MB / 400.5 MB, free: 57.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.2418, allocations: 8 kB / 400.5 MB, free: 57.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004629/0.2422, allocations: 227.7 kB / 400.7 MB, free: 57.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006623/0.2429, allocations: 418.4 kB / 401.1 MB, free: 56.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.677e-05/0.243, allocations: 32 kB / 401.2 MB, free: 56.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.2441, allocations: 1.909 MB / 403.1 MB, free: 54.89 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.2441, allocations: 9.25 kB / 403.1 MB, free: 54.89 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.2455, allocations: 1.841 MB / 404.9 MB, free: 52.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004582/0.246, allocations: 465.3 kB / 405.4 MB, free: 52.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002213/0.2462, allocations: 32 kB / 405.4 MB, free: 52.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000621/0.2468, allocations: 39.98 kB / 405.4 MB, free: 52.39 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.2469, allocations: 108.3 kB / 405.5 MB, free: 52.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.916e-05/0.247, allocations: 40 kB / 405.6 MB, free: 52.24 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008226/0.2478, allocations: 1.297 MB / 406.9 MB, free: 50.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2478, allocations: 0 / 406.9 MB, free: 50.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002539/0.2503, allocations: 1.121 MB / 408 MB, free: 49.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 4 (revolute1.w,damper.phi_rel,revolute2.phi,revolute2.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 (127): * Single equations (assignments): 123 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002472/0.2506, allocations: 178.9 kB / 408.2 MB, free: 49.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002084/0.2527, allocations: 2.798 MB / 411 MB, free: 46.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001257/0.2528, allocations: 96.92 kB / 411.1 MB, free: 46.74 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004199/0.2532, allocations: 0.5448 MB / 411.6 MB, free: 46.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.2547, allocations: 0.7308 MB / 412.3 MB, free: 45.46 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006493/0.2612, allocations: 8.005 MB / 420.3 MB, free: 37.29 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008208/0.262, allocations: 1.327 MB / 421.7 MB, free: 35.94 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009203/0.2629, allocations: 0.509 MB / 422.2 MB, free: 35.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007055/0.2637, allocations: 0.587 MB / 422.8 MB, free: 34.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2637, allocations: 0 / 422.8 MB, free: 34.84 MB / 330.7 MB Notification: Performance of Templates: time 0.0417/0.3054, allocations: 36.7 MB / 459.5 MB, free: 14.14 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.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: 3.511524046305567]