Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.001745/0.001745, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002069/0.002069, allocations: 206.6 kB / 24.47 MB, free: 3.977 MB / 14.72 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 1.564/1.564, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 47.92 kB / 379 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2178, allocations: 53.37 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01185/0.2297, allocations: 9.03 MB / 441.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007307/0.237, allocations: 3.694 MB / 445.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008158/0.2378, allocations: 63.69 kB / 445.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004246/0.2421, allocations: 2.021 MB / 447.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003583/0.2456, allocations: 1.65 MB / 448.8 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001536/0.2472, allocations: 0.7018 MB / 449.5 MB, free: 5.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003946/0.2511, allocations: 3.392 MB / 452.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002516/0.2536, allocations: 2.208 MB / 455.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001526/0.2552, allocations: 1.269 MB / 456.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002277/0.2574, allocations: 1.912 MB / 458.3 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004434/0.2579, allocations: 260 kB / 458.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001766/0.2596, allocations: 1.014 MB / 459.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001453/0.2611, allocations: 1.601 MB / 461.1 MB, free: 9.758 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001384/0.2625, allocations: 1.367 MB / 462.5 MB, free: 8.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006085/0.2686, allocations: 5.925 MB / 468.4 MB, free: 2.438 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.2686, allocations: 4 kB / 468.4 MB, free: 2.434 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2686, allocations: 0 / 468.4 MB, free: 2.434 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.064e-05/0.2687, allocations: 4 kB / 468.4 MB, free: 2.43 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.007503/0.2762, allocations: 4.141 MB / 472.6 MB, free: 14.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.2762, allocations: 8.031 kB / 472.6 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006803/0.283, allocations: 1.874 MB / 474.5 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004164/0.2872, allocations: 1.83 MB / 476.3 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.2873, allocations: 209.2 kB / 476.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005166/0.2879, allocations: 271.8 kB / 476.8 MB, free: 10 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/0.3056, allocations: 10.06 MB / 486.8 MB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.419e-05/0.3057, allocations: 39.64 kB / 486.9 MB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003653/0.306, allocations: 131.9 kB / 487 MB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003231/0.3093, allocations: 1.856 MB / 488.8 MB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01768/0.3269, allocations: 8.551 MB / 497.4 MB, free: 4.672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04448/0.3714, allocations: 34.64 MB / 0.5196 GB, free: 1 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01001/0.3814, allocations: 3.102 MB / 0.5226 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002506/0.3839, allocations: 1.701 MB / 0.5243 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01158/0.3955, allocations: 6.206 MB / 0.5303 GB, free: 5.902 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.573e-05/0.3956, allocations: 51.5 kB / 0.5304 GB, free: 5.844 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.669e-06/0.3956, allocations: 0 / 0.5304 GB, free: 5.844 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2288/0.6243, allocations: 17.52 MB / 0.5475 GB, free: 99.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.6244, allocations: 153.1 kB / 0.5476 GB, free: 99.19 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002886/0.6273, allocations: 3.228 MB / 0.5508 GB, free: 98.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000127/0.6274, allocations: 53.47 kB / 0.5508 GB, free: 97.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009196/0.6283, allocations: 2.868 MB / 0.5536 GB, free: 95.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000368/0.6287, allocations: 0.6718 MB / 0.5543 GB, free: 95.44 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001047/0.6297, allocations: 1.127 MB / 0.5554 GB, free: 94.53 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.203e-05/0.6298, allocations: 301.1 kB / 0.5557 GB, free: 94.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002232/0.632, allocations: 1.968 MB / 0.5576 GB, free: 92.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003038/0.635, allocations: 5.387 MB / 0.5629 GB, free: 85.67 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005706/0.6407, allocations: 7.951 MB / 0.5706 GB, free: 76.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-05/0.6408, allocations: 32 kB / 0.5707 GB, free: 76.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01154/0.6523, allocations: 8.167 MB / 0.5786 GB, free: 67.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.523e-05/0.6524, allocations: 60.06 kB / 0.5787 GB, free: 67.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.23e-05/0.6524, allocations: 120 kB / 0.5788 GB, free: 67.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003714/0.6562, allocations: 1.298 MB / 0.5801 GB, free: 66.36 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003247/0.6594, allocations: 1.271 MB / 0.5813 GB, free: 65.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007/0.6664, allocations: 6.362 MB / 0.5875 GB, free: 58.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003359/0.6698, allocations: 303.7 kB / 0.5878 GB, free: 58.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003363/0.6701, allocations: 344 kB / 0.5881 GB, free: 58 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001826/0.6719, allocations: 1.808 MB / 0.5899 GB, free: 56.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003627/0.6723, allocations: 282.1 kB / 0.5902 GB, free: 55.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006157/0.6785, allocations: 3.335 MB / 0.5934 GB, free: 52.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-05/0.6785, allocations: 23.28 kB / 0.5935 GB, free: 52.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.6785, allocations: 6 kB / 0.5935 GB, free: 52.53 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.6785, allocations: 7.969 kB / 0.5935 GB, free: 52.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/0.6896, allocations: 6.628 MB / 0.5999 GB, free: 45.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.6896, allocations: 0 / 0.5999 GB, free: 45.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.6907, allocations: 243.7 kB / 0.6002 GB, free: 45.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003458/0.6942, allocations: 1.12 MB / 0.6013 GB, free: 44.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001202/0.6943, allocations: 24 kB / 0.6013 GB, free: 44.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006718/0.701, allocations: 5.998 MB / 0.6071 GB, free: 38.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.701, allocations: 4.031 kB / 0.6072 GB, free: 38.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008055/0.7091, allocations: 5.713 MB / 0.6127 GB, free: 32.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005496/0.7096, allocations: 242 kB / 0.613 GB, free: 32.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003216/0.71, allocations: 28 kB / 0.613 GB, free: 32.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.7111, allocations: 99.89 kB / 0.6131 GB, free: 32.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/0.7114, allocations: 92.83 kB / 0.6132 GB, free: 32.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.7115, allocations: 51.92 kB / 0.6132 GB, free: 32.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001967/0.7134, allocations: 1.818 MB / 0.615 GB, free: 30.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7134, allocations: 0 / 0.615 GB, free: 30.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003491/0.7169, allocations: 0.8944 MB / 0.6159 GB, free: 29.44 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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,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.0002935/0.7172, allocations: 166.3 kB / 0.616 GB, free: 29.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005479/0.7227, allocations: 4.624 MB / 0.6205 GB, free: 24.67 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.7227, allocations: 0 / 0.6205 GB, free: 24.67 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.7245, allocations: 1.442 MB / 0.622 GB, free: 23.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/0.726, allocations: 295.2 kB / 0.6222 GB, free: 22.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009996/0.736, allocations: 8.159 MB / 0.6302 GB, free: 14.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002107/0.7381, allocations: 2.295 MB / 0.6324 GB, free: 12.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002926/0.741, allocations: 1.662 MB / 0.6341 GB, free: 10.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004779/0.7415, allocations: 199.4 kB / 0.6343 GB, free: 10.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.7415, allocations: 0 / 0.6343 GB, free: 10.54 MB / 446.1 MB Notification: Performance of Templates: time 0.06038/0.8019, allocations: 33.73 MB / 0.6672 GB, free: 9.211 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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: 6.200030349995359]